Skip to content

S3/f update endpoint arguments#33724

Merged
jar-b merged 8 commits intomainfrom
s3/f-update-endpoint-arguments
Aug 23, 2023
Merged

S3/f update endpoint arguments#33724
jar-b merged 8 commits intomainfrom
s3/f-update-endpoint-arguments

Conversation

@gdavison
Copy link
Copy Markdown
Contributor

Moves the arguments for overriding AWS API endpoints into the argument endpoints.

Deprecates the arguments dynamodb_endpoint, iam_endpoint, endpoint (S3), and sts_endpoint.

Fixes #30492

Target Release

1.6.0

Draft CHANGELOG entry

UPGRADE NOTES

  • Moves arguments associated with overriding AWS API endpoints into nested block endpoints. This deprecates the arguments dynamodb_endpoint, iam_endpoint, endpoint (S3), and sts_endpoint

@gdavison gdavison requested a review from a team as a code owner August 22, 2023 21:46
Copy link
Copy Markdown
Member

@jar-b jar-b left a comment

Choose a reason for hiding this comment

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

LGTM 🎉

% TF_ACC=1 go test -count=1 ./internal/backend/remote-state/s3/...
ok      github.com/hashicorp/terraform/internal/backend/remote-state/s3 177.845s

@jar-b jar-b merged commit e5dd725 into main Aug 23, 2023
@jar-b jar-b deleted the s3/f-update-endpoint-arguments branch August 23, 2023 17:31
@github-actions
Copy link
Copy Markdown
Contributor

Reminder for the merging maintainer: if this is a user-visible change, please update the changelog on the appropriate release branch.

var s3Config aws.Config
if v, ok := stringAttrDefaultEnvVarOk(obj, "endpoint", "AWS_ENDPOINT_URL_S3", "AWS_S3_ENDPOINT"); ok {
if v, ok := retrieveArgument(&diags,
newAttributeRetriever(obj, cty.GetAttrPath("endpoints").GetAttr("s3")),
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

are you sure it's working? When I to change from the deprecated endpoint to endpoints { s3 = ... } it's ignoring the value...

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Dec 7, 2023

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 contributions.
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 Dec 7, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

backend/s3: Endpoint override parameter changes

3 participants