-
Notifications
You must be signed in to change notification settings - Fork 9.9k
feat(ecs): add spot support for managed instance capacity provider #45656
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
Conversation
Community GuidelinesThis comment is added to every new Pull Request to provide quick reference to how the Terraform AWS Provider is maintained. Please review the information below, and thank you for contributing to the community that keeps the provider thriving! 🚀 Voting for Prioritization
Pull Request Authors
|
|
|
Requires AWS SDK for Go v2 Release 2025-12-18: #45660. |
26cb2cd to
81c4d26
Compare
- Remove S3 origin and origin shield that may be causing 503 errors - Use single custom origin with headers and custom origin config - Keep cache behaviors, custom error responses, and tenant config - Remove aws_region data source (no longer needed without origin shield) - Update test assertions to match simplified configuration - Still tests comprehensive functionality without problematic features
- Add ImportState step to basic test for consistency with comprehensive test - Add etag to ImportStateVerifyIgnore in both tests to match regular distribution pattern - Ensures both tests verify import functionality works correctly - Consistent with CloudFront distribution test patterns
- Remove logging_config (not supported in multi-tenant distributions) - Add missing tenant_config argument (required for multi-tenant distributions) - Add Custom Error Response section with all attributes - Add Tenant Config, Parameter Definition, and String Schema sections - Ensure all schema blocks are documented with correct attributes - Align documentation with actual schema implementation
- Remove s3_origin_config schema block and model field - Remove s3OriginConfigModel struct definition - Remove s3_origin_config from documentation - Add S3OriginConfig to limitation comments - Multi-tenant distributions should use origin access control instead - Aligns with restrictive nature of multi-tenant distributions
- Alphabetize the list of unsupported attributes for better readability - No functional changes, just improved organization
- Fix Update method to properly handle tag updates and read back state - Add proper tag update handling using updateTags function - Read distribution after update to populate computed attributes - Add comprehensive tags test with create/update/remove scenarios - Fixes 'unknown value after apply' errors in tag update operations
- Add full UpdateDistribution API call with ETag handling - Add distributionConfigEqual helper to detect config changes - Handle tag updates separately from distribution config updates - Wait for deployment after updates when distribution is enabled - Read back updated distribution to populate computed attributes - Ensures ConnectionMode remains tenant-only after updates Fixes the stub Update method that was causing unknown values after apply.
- Test updating comment, http_version, and default_root_object - Test updating allowed_methods and tenant_config comment - Verify updates work without tags to isolate update functionality - Include import state verification after updates - Ensures Update method works correctly for distribution config changes
- Replace separate tag config functions with single parameterized function using map[string]string - Replace separate update config functions with single parameterized function - Add update step to comprehensive test to validate update functionality - Parameterize comprehensive config function with comment, defaultRootObject, and compress parameters - Add strings import for tag config generation - Reduce test code duplication and improve maintainability
Add missing sections and fields to match schema implementation: - Add Function Association section (event_type, function_arn) - Add Lambda Function Association section (event_type, include_body, lambda_arn) - Add Custom Header section (header_name, header_value) - Add Custom Origin Config section with all fields and defaults - Add Origin Shield section (enabled, origin_shield_region) - Add Origin Group section with failover criteria and members - Add Restrictions and Geo Restriction sections - Add Viewer Certificate section with minimum_protocol_version default - Add missing response_completion_timeout field with default value - Add missing default_value field to String Schema section All schema fields from lines 92-671 are now properly documented with correct optionality, requirements, and default values where applicable.
- Add default value of 0 to error_caching_min_ttl field - Add int64default import for default value support - Resolves 'IllegalUpdate: custom error responses does not exist' error on updates - Follows same pattern as other CloudFront API quirks where fields are required on updates
…ashicorp#45659) Bumps [github.com/YakDriver/copyplop](https://github.com/YakDriver/copyplop) from 0.4.0 to 0.5.0. - [Release notes](https://github.com/YakDriver/copyplop/releases) - [Commits](YakDriver/copyplop@v0.4.0...v0.5.0) --- updated-dependencies: - dependency-name: github.com/YakDriver/copyplop dependency-version: 0.5.0 dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
…icorp#45660) * Bump the aws-sdk-go-v2 group across 1 directory with 12 updates Bumps the aws-sdk-go-v2 group with 12 updates in the / directory: | Package | From | To | | --- | --- | --- | | [github.com/aws/aws-sdk-go-v2/service/appstream](https://github.com/aws/aws-sdk-go-v2) | `1.52.5` | `1.53.0` | | [github.com/aws/aws-sdk-go-v2/service/arcregionswitch](https://github.com/aws/aws-sdk-go-v2) | `1.2.18` | `1.3.0` | | [github.com/aws/aws-sdk-go-v2/service/bedrockagentcorecontrol](https://github.com/aws/aws-sdk-go-v2) | `1.15.2` | `1.16.0` | | [github.com/aws/aws-sdk-go-v2/service/cleanrooms](https://github.com/aws/aws-sdk-go-v2) | `1.38.2` | `1.39.0` | | [github.com/aws/aws-sdk-go-v2/service/ec2](https://github.com/aws/aws-sdk-go-v2) | `1.277.0` | `1.278.0` | | [github.com/aws/aws-sdk-go-v2/service/ecr](https://github.com/aws/aws-sdk-go-v2) | `1.54.4` | `1.55.0` | | [github.com/aws/aws-sdk-go-v2/service/ecs](https://github.com/aws/aws-sdk-go-v2) | `1.69.5` | `1.70.0` | | [github.com/aws/aws-sdk-go-v2/service/iot](https://github.com/aws/aws-sdk-go-v2) | `1.70.0` | `1.71.0` | | [github.com/aws/aws-sdk-go-v2/service/opensearch](https://github.com/aws/aws-sdk-go-v2) | `1.56.0` | `1.57.0` | | [github.com/aws/aws-sdk-go-v2/service/sesv2](https://github.com/aws/aws-sdk-go-v2) | `1.58.0` | `1.59.0` | | [github.com/aws/aws-sdk-go-v2/service/ssmsap](https://github.com/aws/aws-sdk-go-v2) | `1.25.15` | `1.26.0` | | [github.com/aws/aws-sdk-go-v2/service/ssoadmin](https://github.com/aws/aws-sdk-go-v2) | `1.36.12` | `1.36.13` | Updates `github.com/aws/aws-sdk-go-v2/service/appstream` from 1.52.5 to 1.53.0 - [Release notes](https://github.com/aws/aws-sdk-go-v2/releases) - [Changelog](https://github.com/aws/aws-sdk-go-v2/blob/main/changelog-template.json) - [Commits](aws/aws-sdk-go-v2@service/ssm/v1.52.5...service/s3/v1.53.0) Updates `github.com/aws/aws-sdk-go-v2/service/arcregionswitch` from 1.2.18 to 1.3.0 - [Release notes](https://github.com/aws/aws-sdk-go-v2/releases) - [Changelog](https://github.com/aws/aws-sdk-go-v2/blob/v1.3.0/CHANGELOG.md) - [Commits](aws/aws-sdk-go-v2@feature/rds/auth/v1.2.18...v1.3.0) Updates `github.com/aws/aws-sdk-go-v2/service/bedrockagentcorecontrol` from 1.15.2 to 1.16.0 - [Release notes](https://github.com/aws/aws-sdk-go-v2/releases) - [Changelog](https://github.com/aws/aws-sdk-go-v2/blob/v1.16.0/CHANGELOG.md) - [Commits](aws/aws-sdk-go-v2@config/v1.15.2...v1.16.0) Updates `github.com/aws/aws-sdk-go-v2/service/cleanrooms` from 1.38.2 to 1.39.0 - [Release notes](https://github.com/aws/aws-sdk-go-v2/releases) - [Changelog](https://github.com/aws/aws-sdk-go-v2/blob/main/changelog-template.json) - [Commits](aws/aws-sdk-go-v2@v1.38.2...v1.39.0) Updates `github.com/aws/aws-sdk-go-v2/service/ec2` from 1.277.0 to 1.278.0 - [Release notes](https://github.com/aws/aws-sdk-go-v2/releases) - [Changelog](https://github.com/aws/aws-sdk-go-v2/blob/main/changelog-template.json) - [Commits](aws/aws-sdk-go-v2@service/ec2/v1.277.0...service/ec2/v1.278.0) Updates `github.com/aws/aws-sdk-go-v2/service/ecr` from 1.54.4 to 1.55.0 - [Release notes](https://github.com/aws/aws-sdk-go-v2/releases) - [Changelog](https://github.com/aws/aws-sdk-go-v2/blob/main/changelog-template.json) - [Commits](aws/aws-sdk-go-v2@service/s3/v1.54.4...service/s3/v1.55.0) Updates `github.com/aws/aws-sdk-go-v2/service/ecs` from 1.69.5 to 1.70.0 - [Release notes](https://github.com/aws/aws-sdk-go-v2/releases) - [Changelog](https://github.com/aws/aws-sdk-go-v2/blob/main/changelog-template.json) - [Commits](aws/aws-sdk-go-v2@service/ecs/v1.69.5...service/s3/v1.70.0) Updates `github.com/aws/aws-sdk-go-v2/service/iot` from 1.70.0 to 1.71.0 - [Release notes](https://github.com/aws/aws-sdk-go-v2/releases) - [Changelog](https://github.com/aws/aws-sdk-go-v2/blob/main/changelog-template.json) - [Commits](aws/aws-sdk-go-v2@service/s3/v1.70.0...service/s3/v1.71.0) Updates `github.com/aws/aws-sdk-go-v2/service/opensearch` from 1.56.0 to 1.57.0 - [Release notes](https://github.com/aws/aws-sdk-go-v2/releases) - [Changelog](https://github.com/aws/aws-sdk-go-v2/blob/main/changelog-template.json) - [Commits](aws/aws-sdk-go-v2@service/s3/v1.56.0...service/s3/v1.57.0) Updates `github.com/aws/aws-sdk-go-v2/service/sesv2` from 1.58.0 to 1.59.0 - [Release notes](https://github.com/aws/aws-sdk-go-v2/releases) - [Changelog](https://github.com/aws/aws-sdk-go-v2/blob/main/changelog-template.json) - [Commits](aws/aws-sdk-go-v2@service/s3/v1.58.0...service/s3/v1.59.0) Updates `github.com/aws/aws-sdk-go-v2/service/ssmsap` from 1.25.15 to 1.26.0 - [Release notes](https://github.com/aws/aws-sdk-go-v2/releases) - [Changelog](https://github.com/aws/aws-sdk-go-v2/blob/main/changelog-template.json) - [Commits](aws/aws-sdk-go-v2@service/waf/v1.25.15...v1.26.0) Updates `github.com/aws/aws-sdk-go-v2/service/ssoadmin` from 1.36.12 to 1.36.13 - [Release notes](https://github.com/aws/aws-sdk-go-v2/releases) - [Changelog](https://github.com/aws/aws-sdk-go-v2/blob/main/changelog-template.json) - [Commits](aws/aws-sdk-go-v2@service/xray/v1.36.12...service/xray/v1.36.13) --- updated-dependencies: - dependency-name: github.com/aws/aws-sdk-go-v2/service/appstream dependency-version: 1.53.0 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: aws-sdk-go-v2 - dependency-name: github.com/aws/aws-sdk-go-v2/service/arcregionswitch dependency-version: 1.3.0 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: aws-sdk-go-v2 - dependency-name: github.com/aws/aws-sdk-go-v2/service/bedrockagentcorecontrol dependency-version: 1.16.0 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: aws-sdk-go-v2 - dependency-name: github.com/aws/aws-sdk-go-v2/service/cleanrooms dependency-version: 1.39.0 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: aws-sdk-go-v2 - dependency-name: github.com/aws/aws-sdk-go-v2/service/ec2 dependency-version: 1.278.0 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: aws-sdk-go-v2 - dependency-name: github.com/aws/aws-sdk-go-v2/service/ecr dependency-version: 1.55.0 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: aws-sdk-go-v2 - dependency-name: github.com/aws/aws-sdk-go-v2/service/ecs dependency-version: 1.70.0 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: aws-sdk-go-v2 - dependency-name: github.com/aws/aws-sdk-go-v2/service/iot dependency-version: 1.71.0 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: aws-sdk-go-v2 - dependency-name: github.com/aws/aws-sdk-go-v2/service/opensearch dependency-version: 1.57.0 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: aws-sdk-go-v2 - dependency-name: github.com/aws/aws-sdk-go-v2/service/sesv2 dependency-version: 1.59.0 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: aws-sdk-go-v2 - dependency-name: github.com/aws/aws-sdk-go-v2/service/ssmsap dependency-version: 1.26.0 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: aws-sdk-go-v2 - dependency-name: github.com/aws/aws-sdk-go-v2/service/ssoadmin dependency-version: 1.36.13 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: aws-sdk-go-v2 ... Signed-off-by: dependabot[bot] <[email protected]> * chore: make clean-tidy --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Jared Baker <[email protected]>
|
Warning This Issue has been closed, meaning that any additional comments are much easier for the maintainers to miss. Please assume that the maintainers will not see them. Ongoing conversations amongst community members are welcome, however, the issue will be locked after 30 days. Moving conversations to another venue, such as the AWS Provider forum, is recommended. If you have additional concerns, please open a new issue, referencing this one where needed. |
|
Recreating PR to cleanup git #45667 |
Re-created PR to cleanup Git history: #45667
Rollback Plan
If a change needs to be reverted, we will publish an updated version of the library.
Description
Adds support for
capacityOptionTypewhich has two options:ON_DEMANDandSPOT. With on-demand instances, you pay for compute capacity by the hour, with no long-term commitments or upfront payments. Amazon EC2 Spot instances let you take advantage of unused EC2 capacity in the AWS cloud.See public documentation here.
Output from Acceptance Testing