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

tests/resource/aws_synthetics_canary: Canaries entering ERROR state #18616

Closed
bflad opened this issue Apr 7, 2021 · 2 comments · Fixed by #20463
Closed

tests/resource/aws_synthetics_canary: Canaries entering ERROR state #18616

bflad opened this issue Apr 7, 2021 · 2 comments · Fixed by #20463
Labels
service/synthetics Issues and PRs that pertain to the synthetics service. tests PRs: expanded test coverage. Issues: expanded coverage, enhancements to test infrastructure.
Milestone

Comments

@bflad
Copy link
Contributor

bflad commented Apr 7, 2021

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment

Description

The aws_synthetics_canary testing is consistently failing in ways that indicate that the Synthetic Canaries are creating "successfully" but then entering an ERROR state. This includes the engine_arn being removed, Canary is not in a startable state / Canary in a state that can't be modified type errors, and potentially vpc_config being removed.

=== CONT  TestAccAWSSyntheticsCanary_basic
resource_aws_synthetics_canary_test.go:82: Step 1/3 error: Check failed: 2 errors occurred:
  * Check 14/20 error: aws_synthetics_canary.test: Attribute 'engine_arn' didn't match "arn:aws:lambda:us-west-2:*******:function:cwsyn-tf-acc-test-96pbyi8n.+", got ""
  * Check 20/20 error: aws_synthetics_canary.test: Attribute 'status' expected "READY", got "ERROR"
--- FAIL: TestAccAWSSyntheticsCanary_basic (17.20s)

=== CONT  TestAccAWSSyntheticsCanary_startCanary
resource_aws_synthetics_canary_test.go:190: Step 1/4 error: Error running apply: exit status 1
Error: error starting Synthetics Canary: ConflictException: Canary is not in a startable state.
on terraform_plugin_test.tf line 92, in resource "aws_synthetics_canary" "test":
92: resource "aws_synthetics_canary" "test" {
--- FAIL: TestAccAWSSyntheticsCanary_startCanary (19.68s)

=== CONT  TestAccAWSSyntheticsCanary_startCanary_codeChanges
resource_aws_synthetics_canary_test.go:238: Step 1/3 error: Error running apply: exit status 1
Error: error starting Synthetics Canary: ConflictException: Canary is not in a startable state.
on terraform_plugin_test.tf line 92, in resource "aws_synthetics_canary" "test":
92: resource "aws_synthetics_canary" "test" {
--- FAIL: TestAccAWSSyntheticsCanary_startCanary_codeChanges (21.37s)

=== CONT  TestAccAWSSyntheticsCanary_runtimeVersion
resource_aws_synthetics_canary_test.go:155: Step 3/3 error: Error running apply: exit status 1
Error: error updating Synthetics Canary: ConflictException: Canary in a state that can't be modified: ERROR
on terraform_plugin_test.tf line 92, in resource "aws_synthetics_canary" "test":
92: resource "aws_synthetics_canary" "test" {
--- FAIL: TestAccAWSSyntheticsCanary_runtimeVersion (40.53s)

=== CONT  TestAccAWSSyntheticsCanary_s3
resource_aws_synthetics_canary_test.go:279: Step 1/2 error: Check failed: 1 error occurred:
  * Check 15/18 error: aws_synthetics_canary.test: Attribute 'engine_arn' didn't match "arn:aws:lambda:us-west-2:*******:function:cwsyn-tf-acc-test-aacojbil.+", got ""
--- FAIL: TestAccAWSSyntheticsCanary_s3 (23.62s)

=== CONT  TestAccAWSSyntheticsCanary_vpc
resource_aws_synthetics_canary_test.go:411: Step 1/4 error: Check failed: 3 errors occurred:
  * Check 2/4 error: aws_synthetics_canary.test: Attribute 'vpc_config.0.subnet_ids.#' not found
  * Check 3/4 error: aws_synthetics_canary.test: Attribute 'vpc_config.0.security_group_ids.#' not found
  * Check 4/4 error: aws_synthetics_canary.test: Attribute "vpc_config.0.vpc_id" not set, but "id" is set in aws_vpc.test as "vpc-0e1516c8f69f40513"
--- FAIL: TestAccAWSSyntheticsCanary_vpc (20.51s)

=== CONT  TestAccAWSSyntheticsCanary_runConfig
resource_aws_synthetics_canary_test.go:323: Step 3/4 error: Error running apply: exit status 1
Error: error updating Synthetics Canary: ConflictException: Canary in a state that can't be modified: ERROR
on terraform_plugin_test.tf line 92, in resource "aws_synthetics_canary" "test":
92: resource "aws_synthetics_canary" "test" {
--- FAIL: TestAccAWSSyntheticsCanary_runConfig (37.71s)

=== CONT  TestAccAWSSyntheticsCanary_runConfigTracing
resource_aws_synthetics_canary_test.go:369: Step 3/4 error: Error running apply: exit status 1
Error: error updating Synthetics Canary: ConflictException: Canary in a state that can't be modified: ERROR
on terraform_plugin_test.tf line 92, in resource "aws_synthetics_canary" "test":
92: resource "aws_synthetics_canary" "test" {
--- FAIL: TestAccAWSSyntheticsCanary_runConfigTracing (37.42s)

Affected Resource

  • aws_synthetics_canary
@bflad bflad added tests PRs: expanded test coverage. Issues: expanded coverage, enhancements to test infrastructure. service/synthetics Issues and PRs that pertain to the synthetics service. labels Apr 7, 2021
@github-actions github-actions bot added this to the v3.54.0 milestone Aug 6, 2021
@github-actions
Copy link

This functionality has been released in v3.54.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. Thank you!

@github-actions
Copy link

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 have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 12, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
service/synthetics Issues and PRs that pertain to the synthetics service. tests PRs: expanded test coverage. Issues: expanded coverage, enhancements to test infrastructure.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant