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

F/aws ecs capacity provider #24005

Conversation

nikhil-goenka
Copy link
Contributor

@nikhil-goenka nikhil-goenka commented Apr 2, 2022

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" or other comments that do not add relevant new information or questions, they generate extra noise for pull request followers and do not help prioritize the request

Closes #24003.

Output from acceptance testing:

$ make testacc TESTS=TestAccXXX PKG=ec2

...

nikhil-goenka and others added 10 commits September 2, 2021 09:54
…orp#20701)

As shown in hashicorp#20493 the documentation does not accurately reflect the current observed behaviour of this provider. The docs say that metadata_options.http_endpoint is optional, but the provider gives an error if http_endpoint is omitted.
# Conflicts:
#	aws/resource_aws_cloudformation_stack_set.go
#	aws/resource_aws_ebs_volume.go
#	aws/resource_aws_ebs_volume_test.go
#	aws/resource_aws_securityhub_member_test.go
#	website/docs/r/autoscaling_group.html.markdown
@github-actions github-actions bot added size/XS Managed by automation to categorize the size of a PR. needs-triage Waiting for first response or review from a maintainer. service/ecs Issues and PRs that pertain to the ecs service. labels Apr 2, 2022
@ewbankkit ewbankkit added bug Addresses a defect in current functionality. and removed needs-triage Waiting for first response or review from a maintainer. labels Apr 2, 2022
@github-actions github-actions bot added the tests PRs: expanded test coverage. Issues: expanded coverage, enhancements to test infrastructure. label Apr 2, 2022
@ewbankkit ewbankkit added the breaking-change Introduces a breaking change in current functionality; usually deferred to the next major release. label Apr 2, 2022
@ewbankkit
Copy link
Contributor

% make testacc TESTS=TestAccECSCapacityProvider_ PKG=ecs ACCTEST_PARALLELISM=1
==> Checking that code complies with gofmt requirements...
=== RUN   TestAccECSCapacityProvider_basic
=== PAUSE TestAccECSCapacityProvider_basic
=== RUN   TestAccECSCapacityProvider_disappears
=== PAUSE TestAccECSCapacityProvider_disappears
=== RUN   TestAccECSCapacityProvider_managedScaling
=== PAUSE TestAccECSCapacityProvider_managedScaling
=== RUN   TestAccECSCapacityProvider_managedScalingPartial
=== PAUSE TestAccECSCapacityProvider_managedScalingPartial
=== RUN   TestAccECSCapacityProvider_tags
=== PAUSE TestAccECSCapacityProvider_tags
=== CONT  TestAccECSCapacityProvider_basic
--- PASS: TestAccECSCapacityProvider_basic (88.30s)
=== CONT  TestAccECSCapacityProvider_managedScalingPartial
    capacity_provider_test.go:132: Step 1/2 error: Check failed: Check 5/9 error: aws_ecs_capacity_provider.test: Attribute 'auto_scaling_group_provider.0.managed_scaling.0.instance_warmup_period' expected "300", got "0"
--- FAIL: TestAccECSCapacityProvider_managedScalingPartial (52.00s)
=== CONT  TestAccECSCapacityProvider_tags
--- PASS: TestAccECSCapacityProvider_tags (155.85s)
=== CONT  TestAccECSCapacityProvider_managedScaling
--- PASS: TestAccECSCapacityProvider_managedScaling (130.84s)
=== CONT  TestAccECSCapacityProvider_disappears
--- PASS: TestAccECSCapacityProvider_disappears (75.06s)
FAIL
FAIL	github.com/hashicorp/terraform-provider-aws/internal/service/ecs	506.443s
FAIL
make: *** [testacc] Error 1

@ewbankkit
Copy link
Contributor

Because we cannot currently detect the different between an unspecified nested attribute value and its zero value, this would be a breaking change.

@ewbankkit ewbankkit added this to the v5.0.0 milestone May 4, 2023
@ewbankkit ewbankkit changed the base branch from main to prerelease/5.x May 5, 2023 18:35
@ewbankkit ewbankkit removed the breaking-change Introduces a breaking change in current functionality; usually deferred to the next major release. label May 5, 2023
@ewbankkit
Copy link
Contributor

Superseded by #31231.
@nikhil-goenka Thanks for the contribution 🎉 👏.

@ewbankkit ewbankkit closed this May 5, 2023
@github-actions
Copy link

This functionality has been released in v5.0.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 pull request 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 related to this change, 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 Jun 25, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Addresses a defect in current functionality. service/ecs Issues and PRs that pertain to the ecs service. size/XS Managed by automation to categorize the size of a PR. tests PRs: expanded test coverage. Issues: expanded coverage, enhancements to test infrastructure.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ECS ManagedScalingInstanceWarmupPeriod minimum is 0 not 1
4 participants