Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use tag-on-create for sfn #8395

Merged
merged 1 commit into from
May 15, 2019
Merged

Conversation

jukie
Copy link
Contributor

@jukie jukie commented Apr 20, 2019

Community Note

  • Please vote on this pull request by adding a 👍 reaction to the original pull request comment to help the community and maintainers prioritize this request
  • Please do not leave "+1" comments, they generate extra noise for pull request followers and do not help prioritize the request

Fixes #7671

Changes proposed in this pull request:

  • Set tags at creation time

Output from acceptance testing:

$ make testacc TEST=./aws TESTARGS='-run=TestAccAWSSfnActivity_Tags'
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./aws -v -parallel 20 -run=TestAccAWSSfnActivity_Tags -timeout 120m
=== RUN   TestAccAWSSfnActivity_Tags
=== PAUSE TestAccAWSSfnActivity_Tags
=== CONT  TestAccAWSSfnActivity_Tags
--- PASS: TestAccAWSSfnActivity_Tags (23.25s)
PASS
ok  	github.com/jukie/terraform-provider-aws/aws	23.303s

...

@ghost ghost added size/XS Managed by automation to categorize the size of a PR. service/sfn Issues and PRs that pertain to the sfn service. labels Apr 20, 2019
@bflad bflad added the enhancement Requests to existing resources that expand the functionality or scope. label May 14, 2019
@bflad bflad added this to the v2.11.0 milestone May 15, 2019
Copy link
Contributor

@bflad bflad left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, @jukie, thanks! 🚀

Output from AWS Standard acceptance testing (failure unrelated):

--- PASS: TestAccAWSSfnActivity_basic (13.20s)
--- PASS: TestAccAWSSfnActivity_importBasic (14.40s)
--- PASS: TestAccAWSSfnActivity_Tags (31.89s)
--- FAIL: TestAccAWSSfnStateMachine_createUpdate (36.66s)
    testing.go:568: Step 1 error: Check failed: Check 5/6 error: aws_sfn_state_machine.foo: Attribute 'definition' didn't match ".*\\\"MaxAttempts\\\": 10.*", got "{\n  \"Comment\": \"A Hello World example of the Amazon States Language using an AWS Lambda Function\",\n  \"StartAt\": \"HelloWorld\",\n  \"States\": {\n    \"HelloWorld\": {\n      \"Type\": \"Task\",\n      \"Resource\": \"arn:aws:lambda:us-west-2:187416307283:function:sfn-qqccgc0m48\",\n      \"Retry\": [\n        {\n          \"ErrorEquals\": [\"States.ALL\"],\n          \"IntervalSeconds\": 5,\n          \"MaxAttempts\": 5,\n          \"BackoffRate\": 8.0\n        }\n      ],\n      \"End\": true\n    }\n  }\n}\n"
--- PASS: TestAccAWSSfnStateMachine_Tags (50.20s)

Output from AWS GovCloud (US) acceptance testing (failure unrelated and after another quick test fix which I'll submit after this):

--- PASS: TestAccAWSSfnActivity_basic (17.29s)
--- PASS: TestAccAWSSfnActivity_importBasic (19.04s)
--- FAIL: TestAccAWSSfnStateMachine_createUpdate (41.69s)
    testing.go:568: Step 1 error: Check failed: Check 5/6 error: aws_sfn_state_machine.foo: Attribute 'definition' didn't match ".*\\\"MaxAttempts\\\": 10.*", got "{\n  \"Comment\": \"A Hello World example of the Amazon States Language using an AWS Lambda Function\",\n  \"StartAt\": \"HelloWorld\",\n  \"States\": {\n    \"HelloWorld\": {\n      \"Type\": \"Task\",\n      \"Resource\": \"arn:aws-us-gov:lambda:us-gov-west-1:357342307427:function:sfn-18y92jitjb\",\n      \"Retry\": [\n        {\n          \"ErrorEquals\": [\"States.ALL\"],\n          \"IntervalSeconds\": 5,\n          \"MaxAttempts\": 5,\n          \"BackoffRate\": 8.0\n        }\n      ],\n      \"End\": true\n    }\n  }\n}\n"
--- PASS: TestAccAWSSfnActivity_Tags (59.11s)
--- PASS: TestAccAWSSfnStateMachine_Tags (62.98s)

@bflad bflad merged commit 65960d7 into hashicorp:master May 15, 2019
bflad added a commit that referenced this pull request May 15, 2019
@bflad
Copy link
Contributor

bflad commented May 17, 2019

This has been released in version 2.11.0 of the Terraform AWS provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading.

@ghost
Copy link

ghost commented Mar 30, 2020

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.

If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. Thanks!

@ghost ghost locked and limited conversation to collaborators Mar 30, 2020
@jukie jukie deleted the f-sfn_add-tag-on-create branch April 17, 2020 02:27
@justinretzolk justinretzolk added the partner Contribution from a partner. label May 16, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement Requests to existing resources that expand the functionality or scope. partner Contribution from a partner. service/sfn Issues and PRs that pertain to the sfn service. size/XS Managed by automation to categorize the size of a PR.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

AWS Step Functions resources: Add support for tag-on-create
3 participants