-
Notifications
You must be signed in to change notification settings - Fork 9.2k
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
Add aws_amplify_app resource #15966
Add aws_amplify_app resource #15966
Conversation
@ewbankkit who can review this PR? I need to raise subsequent PRs for various Amplify resources but those will need |
Sorry for the sudden mention, could you review this? @DrFaust92 @bflad |
@ewbankkit sorry to do it, but any chance this can get reviewed / on the roadmap? The original code for Amplify support is approaching 1 year old at this point. Appreciate taking a look! 🙏 |
Is anything happening with this? |
@kierancrown See #19187. |
Looking forward to this getting in! |
Acceptance test output: % make testacc TEST=./aws TESTARGS='-run=TestAccAWSAmplifyApp_Name\|TestAccAWSAmplifyApp_basic\|TestAccAWSAmplifyApp_disappears\|TestAccAWSAmplifyApp_Tags' ==> Checking that code complies with gofmt requirements... TF_ACC=1 go test ./aws -v -count 1 -parallel 20 -run=TestAccAWSAmplifyApp_Name\|TestAccAWSAmplifyApp_basic\|TestAccAWSAmplifyApp_disappears\|TestAccAWSAmplifyApp_Tags -timeout 180m === RUN TestAccAWSAmplifyApp_basic === PAUSE TestAccAWSAmplifyApp_basic === RUN TestAccAWSAmplifyApp_Name_Generated === PAUSE TestAccAWSAmplifyApp_Name_Generated === RUN TestAccAWSAmplifyApp_NamePrefix === PAUSE TestAccAWSAmplifyApp_NamePrefix === RUN TestAccAWSAmplifyApp_Tags === PAUSE TestAccAWSAmplifyApp_Tags === CONT TestAccAWSAmplifyApp_basic === CONT TestAccAWSAmplifyApp_Tags === CONT TestAccAWSAmplifyApp_Name_Generated === CONT TestAccAWSAmplifyApp_NamePrefix --- PASS: TestAccAWSAmplifyApp_Name_Generated (14.40s) --- PASS: TestAccAWSAmplifyApp_NamePrefix (14.90s) --- PASS: TestAccAWSAmplifyApp_basic (19.53s) --- PASS: TestAccAWSAmplifyApp_Tags (30.27s) PASS ok github.com/terraform-providers/terraform-provider-aws/aws 33.242s
…ame updating. Acceptance test output: % make testacc TEST=./aws TESTARGS='-run=TestAccAWSAmplifyApp_Name\|TestAccAWSAmplifyApp_basic' ==> Checking that code complies with gofmt requirements... TF_ACC=1 go test ./aws -v -count 1 -parallel 20 -run=TestAccAWSAmplifyApp_Name\|TestAccAWSAmplifyApp_basic -timeout 180m === RUN TestAccAWSAmplifyApp_basic === PAUSE TestAccAWSAmplifyApp_basic === RUN TestAccAWSAmplifyApp_Name === PAUSE TestAccAWSAmplifyApp_Name === CONT TestAccAWSAmplifyApp_basic === CONT TestAccAWSAmplifyApp_Name --- PASS: TestAccAWSAmplifyApp_basic (13.33s) --- PASS: TestAccAWSAmplifyApp_Name (22.50s) PASS ok github.com/terraform-providers/terraform-provider-aws/aws 26.372s
Acceptance test output: % make testacc TEST=./aws TESTARGS='-run=TestAccAWSAmplifyApp_Description' ==> Checking that code complies with gofmt requirements... TF_ACC=1 go test ./aws -v -count 1 -parallel 20 -run=TestAccAWSAmplifyApp_Description -timeout 180m === RUN TestAccAWSAmplifyApp_Description === PAUSE TestAccAWSAmplifyApp_Description === CONT TestAccAWSAmplifyApp_Description --- PASS: TestAccAWSAmplifyApp_Description (33.31s) PASS ok github.com/terraform-providers/terraform-provider-aws/aws 36.482s
Acceptance test output: % make testacc TEST=./aws TESTARGS='-run=TestAccAWSAmplifyApp_BuildSpec' ==> Checking that code complies with gofmt requirements... TF_ACC=1 go test ./aws -v -count 1 -parallel 20 -run=TestAccAWSAmplifyApp_BuildSpec -timeout 180m === RUN TestAccAWSAmplifyApp_BuildSpec === PAUSE TestAccAWSAmplifyApp_BuildSpec === CONT TestAccAWSAmplifyApp_BuildSpec --- PASS: TestAccAWSAmplifyApp_BuildSpec (33.73s) PASS ok github.com/terraform-providers/terraform-provider-aws/aws 37.005s
Acceptance test output: % TEST=./aws SWEEP=us-west-2 SWEEPARGS=-sweep-run=aws_amplify_app make sweep WARNING: This will destroy infrastructure. Use only in development accounts. go test ./aws -v -sweep=us-west-2 -sweep-run=aws_amplify_app -timeout 60m 2021/05/20 11:13:49 [DEBUG] Running Sweepers for region (us-west-2): 2021/05/20 11:13:49 [DEBUG] Running Sweeper (aws_amplify_app) in region (us-west-2) 2021/05/20 11:13:49 [INFO] AWS Auth provider used: "EnvProvider" 2021/05/20 11:13:49 [DEBUG] Trying to get account information via sts:GetCallerIdentity 2021/05/20 11:13:50 [DEBUG] Trying to get account information via sts:GetCallerIdentity 2021/05/20 11:13:50 [DEBUG] Deleting Amplify App (d3e2rpqo82owxg) 2021/05/20 11:13:51 Sweeper Tests ran successfully: - aws_amplify_app ok github.com/terraform-providers/terraform-provider-aws/aws 4.452s
Acceptance test output: % make testacc TEST=./aws TESTARGS='-run=TestAccAWSAmplifyApp_disappears' ==> Checking that code complies with gofmt requirements... TF_ACC=1 go test ./aws -v -count 1 -parallel 20 -run=TestAccAWSAmplifyApp_disappears -timeout 180m === RUN TestAccAWSAmplifyApp_disappears === PAUSE TestAccAWSAmplifyApp_disappears === CONT TestAccAWSAmplifyApp_disappears --- PASS: TestAccAWSAmplifyApp_disappears (10.95s) PASS ok github.com/terraform-providers/terraform-provider-aws/aws 14.084s
Acceptance test output: % make testacc TEST=./aws TESTARGS='-run=TestAccAWSAmplifyApp_CustomRules' ==> Checking that code complies with gofmt requirements... TF_ACC=1 go test ./aws -v -count 1 -parallel 20 -run=TestAccAWSAmplifyApp_CustomRules -timeout 180m === RUN TestAccAWSAmplifyApp_CustomRules === PAUSE TestAccAWSAmplifyApp_CustomRules === CONT TestAccAWSAmplifyApp_CustomRules --- PASS: TestAccAWSAmplifyApp_CustomRules (30.06s) PASS ok github.com/terraform-providers/terraform-provider-aws/aws 33.169s
…nment_variables'. Acceptance test output: % make testacc TEST=./aws TESTARGS='-run=TestAccAWSAmplifyApp_EnvironmentVariables' ==> Checking that code complies with gofmt requirements... TF_ACC=1 go test ./aws -v -count 1 -parallel 20 -run=TestAccAWSAmplifyApp_EnvironmentVariables -timeout 180m === RUN TestAccAWSAmplifyApp_EnvironmentVariables === PAUSE TestAccAWSAmplifyApp_EnvironmentVariables === CONT TestAccAWSAmplifyApp_EnvironmentVariables --- PASS: TestAccAWSAmplifyApp_EnvironmentVariables (29.91s) PASS ok github.com/terraform-providers/terraform-provider-aws/aws 33.543s
Acceptance test output: % make testacc TEST=./aws TESTARGS='-run=TestAccAWSAmplifyApp_AutoBranchCreationConfig' ==> Checking that code complies with gofmt requirements... TF_ACC=1 go test ./aws -v -count 1 -parallel 20 -run=TestAccAWSAmplifyApp_AutoBranchCreationConfig -timeout 180m === RUN TestAccAWSAmplifyApp_AutoBranchCreationConfig === PAUSE TestAccAWSAmplifyApp_AutoBranchCreationConfig === CONT TestAccAWSAmplifyApp_AutoBranchCreationConfig --- PASS: TestAccAWSAmplifyApp_AutoBranchCreationConfig (35.19s) PASS ok github.com/terraform-providers/terraform-provider-aws/aws 38.286s
Acceptance test output: % make testacc TEST=./aws TESTARGS='-run=TestAccAWSAmplifyApp_IamServiceRole' ==> Checking that code complies with gofmt requirements... TF_ACC=1 go test ./aws -v -count 1 -parallel 20 -run=TestAccAWSAmplifyApp_IamServiceRole -timeout 180m === RUN TestAccAWSAmplifyApp_IamServiceRole === PAUSE TestAccAWSAmplifyApp_IamServiceRole === CONT TestAccAWSAmplifyApp_IamServiceRole --- PASS: TestAccAWSAmplifyApp_IamServiceRole (32.33s) PASS ok github.com/terraform-providers/terraform-provider-aws/aws 35.813s
…pository'. Acceptance test output: AMPLIFY_GITHUB_ACCESS_TOKEN="..." AMPLIFY_GITHUB_REPOSITORY="https://github.com/ewbankkit/terraform-aws-provider-testing" make testacc TEST=./aws TESTARGS='-run=TestAccAWSAmplifyApp_Repository' ==> Checking that code complies with gofmt requirements... TF_ACC=1 go test ./aws -v -count 1 -parallel 20 -run=TestAccAWSAmplifyApp_Repository -timeout 180m === RUN TestAccAWSAmplifyApp_Repository === PAUSE TestAccAWSAmplifyApp_Repository === CONT TestAccAWSAmplifyApp_Repository --- PASS: TestAccAWSAmplifyApp_Repository (15.63s) PASS ok github.com/terraform-providers/terraform-provider-aws/aws 18.557s
… exceeded errors.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 🚀.
Commercial
% AMPLIFY_GITHUB_ACCESS_TOKEN="..." AMPLIFY_GITHUB_REPOSITORY="https://github.com/ewbankkit/terraform-aws-provider-testing" make testacc TEST=./aws TESTARGS='-run=TestAccAWSAmplify_'
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./aws -v -count 1 -parallel 20 -run=TestAccAWSAmplify_ -timeout 180m
=== RUN TestAccAWSAmplify_serial
=== RUN TestAccAWSAmplify_serial/App
=== RUN TestAccAWSAmplify_serial/App/Tags
=== PAUSE TestAccAWSAmplify_serial/App/Tags
=== RUN TestAccAWSAmplify_serial/App/AutoBranchCreationConfig
=== PAUSE TestAccAWSAmplify_serial/App/AutoBranchCreationConfig
=== RUN TestAccAWSAmplify_serial/App/BasicAuthCredentials
=== PAUSE TestAccAWSAmplify_serial/App/BasicAuthCredentials
=== RUN TestAccAWSAmplify_serial/App/Name
=== PAUSE TestAccAWSAmplify_serial/App/Name
=== RUN TestAccAWSAmplify_serial/App/Repository
=== PAUSE TestAccAWSAmplify_serial/App/Repository
=== RUN TestAccAWSAmplify_serial/App/disappears
=== PAUSE TestAccAWSAmplify_serial/App/disappears
=== RUN TestAccAWSAmplify_serial/App/BuildSpec
=== PAUSE TestAccAWSAmplify_serial/App/BuildSpec
=== RUN TestAccAWSAmplify_serial/App/CustomRules
=== PAUSE TestAccAWSAmplify_serial/App/CustomRules
=== RUN TestAccAWSAmplify_serial/App/Description
=== PAUSE TestAccAWSAmplify_serial/App/Description
=== RUN TestAccAWSAmplify_serial/App/EnvironmentVariables
=== PAUSE TestAccAWSAmplify_serial/App/EnvironmentVariables
=== RUN TestAccAWSAmplify_serial/App/IamServiceRole
=== PAUSE TestAccAWSAmplify_serial/App/IamServiceRole
=== RUN TestAccAWSAmplify_serial/App/basic
=== PAUSE TestAccAWSAmplify_serial/App/basic
=== CONT TestAccAWSAmplify_serial/App/Tags
=== CONT TestAccAWSAmplify_serial/App/IamServiceRole
=== CONT TestAccAWSAmplify_serial/App/BasicAuthCredentials
=== CONT TestAccAWSAmplify_serial/App/BuildSpec
=== CONT TestAccAWSAmplify_serial/App/Description
=== CONT TestAccAWSAmplify_serial/App/EnvironmentVariables
=== CONT TestAccAWSAmplify_serial/App/basic
=== CONT TestAccAWSAmplify_serial/App/CustomRules
=== CONT TestAccAWSAmplify_serial/App/Name
=== CONT TestAccAWSAmplify_serial/App/disappears
=== CONT TestAccAWSAmplify_serial/App/Repository
=== CONT TestAccAWSAmplify_serial/App/AutoBranchCreationConfig
--- PASS: TestAccAWSAmplify_serial (57.63s)
--- PASS: TestAccAWSAmplify_serial/App (0.00s)
--- PASS: TestAccAWSAmplify_serial/App/disappears (22.83s)
--- PASS: TestAccAWSAmplify_serial/App/Repository (32.26s)
--- PASS: TestAccAWSAmplify_serial/App/Name (39.13s)
--- PASS: TestAccAWSAmplify_serial/App/Tags (48.31s)
--- PASS: TestAccAWSAmplify_serial/App/CustomRules (49.94s)
--- PASS: TestAccAWSAmplify_serial/App/basic (51.08s)
--- PASS: TestAccAWSAmplify_serial/App/BuildSpec (53.59s)
--- PASS: TestAccAWSAmplify_serial/App/IamServiceRole (53.79s)
--- PASS: TestAccAWSAmplify_serial/App/EnvironmentVariables (56.12s)
--- PASS: TestAccAWSAmplify_serial/App/Description (56.80s)
--- PASS: TestAccAWSAmplify_serial/App/BasicAuthCredentials (57.00s)
--- PASS: TestAccAWSAmplify_serial/App/AutoBranchCreationConfig (57.63s)
PASS
ok github.com/terraform-providers/terraform-provider-aws/aws 60.642s
GovCloud
% AMPLIFY_GITHUB_ACCESS_TOKEN="..." AMPLIFY_GITHUB_REPOSITORY="https://github.com/ewbankkit/terraform-aws-provider-testing" make testacc TEST=./aws TESTARGS='-run=TestAccAWSAmplify_'
=== RUN TestAccAWSAmplify_serial
=== RUN TestAccAWSAmplify_serial/App
=== RUN TestAccAWSAmplify_serial/App/basic
=== PAUSE TestAccAWSAmplify_serial/App/basic
=== RUN TestAccAWSAmplify_serial/App/disappears
=== PAUSE TestAccAWSAmplify_serial/App/disappears
=== RUN TestAccAWSAmplify_serial/App/AutoBranchCreationConfig
=== PAUSE TestAccAWSAmplify_serial/App/AutoBranchCreationConfig
=== RUN TestAccAWSAmplify_serial/App/BasicAuthCredentials
=== PAUSE TestAccAWSAmplify_serial/App/BasicAuthCredentials
=== RUN TestAccAWSAmplify_serial/App/IamServiceRole
=== PAUSE TestAccAWSAmplify_serial/App/IamServiceRole
=== RUN TestAccAWSAmplify_serial/App/Tags
=== PAUSE TestAccAWSAmplify_serial/App/Tags
=== RUN TestAccAWSAmplify_serial/App/BuildSpec
=== PAUSE TestAccAWSAmplify_serial/App/BuildSpec
=== RUN TestAccAWSAmplify_serial/App/CustomRules
=== PAUSE TestAccAWSAmplify_serial/App/CustomRules
=== RUN TestAccAWSAmplify_serial/App/Description
=== PAUSE TestAccAWSAmplify_serial/App/Description
=== RUN TestAccAWSAmplify_serial/App/EnvironmentVariables
=== PAUSE TestAccAWSAmplify_serial/App/EnvironmentVariables
=== RUN TestAccAWSAmplify_serial/App/Name
=== PAUSE TestAccAWSAmplify_serial/App/Name
=== RUN TestAccAWSAmplify_serial/App/Repository
=== PAUSE TestAccAWSAmplify_serial/App/Repository
=== CONT TestAccAWSAmplify_serial/App/basic
=== CONT TestAccAWSAmplify_serial/App/BuildSpec
=== CONT TestAccAWSAmplify_serial/App/Description
=== CONT TestAccAWSAmplify_serial/App/EnvironmentVariables
=== CONT TestAccAWSAmplify_serial/App/Repository
=== CONT TestAccAWSAmplify_serial/App/Name
=== CONT TestAccAWSAmplify_serial/App/CustomRules
=== CONT TestAccAWSAmplify_serial/App/BasicAuthCredentials
=== CONT TestAccAWSAmplify_serial/App/Tags
=== CONT TestAccAWSAmplify_serial/App/IamServiceRole
=== CONT TestAccAWSAmplify_serial/App/disappears
=== CONT TestAccAWSAmplify_serial/App/AutoBranchCreationConfig
=== CONT TestAccAWSAmplify_serial/App/basic
resource_aws_amplify_app_test.go:681: AWS Amplify is not supported in GovCloud partition
=== CONT TestAccAWSAmplify_serial/App/BuildSpec
resource_aws_amplify_app_test.go:681: AWS Amplify is not supported in GovCloud partition
=== CONT TestAccAWSAmplify_serial/App/EnvironmentVariables
resource_aws_amplify_app_test.go:681: AWS Amplify is not supported in GovCloud partition
=== CONT TestAccAWSAmplify_serial/App/CustomRules
resource_aws_amplify_app_test.go:681: AWS Amplify is not supported in GovCloud partition
=== CONT TestAccAWSAmplify_serial/App/Description
resource_aws_amplify_app_test.go:681: AWS Amplify is not supported in GovCloud partition
=== CONT TestAccAWSAmplify_serial/App/Name
resource_aws_amplify_app_test.go:681: AWS Amplify is not supported in GovCloud partition
=== CONT TestAccAWSAmplify_serial/App/Repository
resource_aws_amplify_app_test.go:681: AWS Amplify is not supported in GovCloud partition
=== CONT TestAccAWSAmplify_serial/App/Tags
resource_aws_amplify_app_test.go:681: AWS Amplify is not supported in GovCloud partition
=== CONT TestAccAWSAmplify_serial/App/IamServiceRole
resource_aws_amplify_app_test.go:681: AWS Amplify is not supported in GovCloud partition
=== CONT TestAccAWSAmplify_serial/App/BasicAuthCredentials
resource_aws_amplify_app_test.go:681: AWS Amplify is not supported in GovCloud partition
=== CONT TestAccAWSAmplify_serial/App/disappears
resource_aws_amplify_app_test.go:681: AWS Amplify is not supported in GovCloud partition
=== CONT TestAccAWSAmplify_serial/App/AutoBranchCreationConfig
resource_aws_amplify_app_test.go:681: AWS Amplify is not supported in GovCloud partition
--- PASS: TestAccAWSAmplify_serial (1.37s)
--- PASS: TestAccAWSAmplify_serial/App (0.00s)
--- SKIP: TestAccAWSAmplify_serial/App/basic (1.37s)
--- SKIP: TestAccAWSAmplify_serial/App/BuildSpec (1.37s)
--- SKIP: TestAccAWSAmplify_serial/App/CustomRules (1.37s)
--- SKIP: TestAccAWSAmplify_serial/App/EnvironmentVariables (1.37s)
--- SKIP: TestAccAWSAmplify_serial/App/Description (1.37s)
--- SKIP: TestAccAWSAmplify_serial/App/Name (1.37s)
--- SKIP: TestAccAWSAmplify_serial/App/Repository (1.37s)
--- SKIP: TestAccAWSAmplify_serial/App/Tags (1.37s)
--- SKIP: TestAccAWSAmplify_serial/App/IamServiceRole (1.37s)
--- SKIP: TestAccAWSAmplify_serial/App/BasicAuthCredentials (1.37s)
--- SKIP: TestAccAWSAmplify_serial/App/disappears (1.37s)
--- SKIP: TestAccAWSAmplify_serial/App/AutoBranchCreationConfig (1.37s)
PASS
ok github.com/terraform-providers/terraform-provider-aws/aws 4.367s
@ashishmohite @k24d Thanks for the contribution 👏.
|
This has been released in version 3.43.0 of the Terraform AWS provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading. For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template for triage. Thanks! |
I'm going to lock this pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. |
Community Note
Relates #6917 and #11928
AWS Amplify service client has been merged by #9874.
Release note for CHANGELOG:
Output from acceptance testing: