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

Fix static get function for ssm.parameter with versioned or labeled IDs #4014

Merged
merged 5 commits into from
Jun 4, 2024

Conversation

flostadler
Copy link
Contributor

@flostadler flostadler commented Jun 3, 2024

When the upstream SSM resources where moved to the AWS SDK v2 the lookup of
SSM parameters with versions or labels got broken. This fixes that
again.

Fixes #4011

When the upstream SSM resources where moved to the AWS SDK v2 the lookup of
SSM parameters with versions or labels got broken. This fixes that
again.
@flostadler flostadler self-assigned this Jun 3, 2024
return sdkdiag.AppendErrorf(diags, "invalid configuration, cannot set type = %s and insecure_value", param.Type)
}

- detail, err := findParameterMetadataByName(ctx, conn, d.Id())
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Before moving to SDK v2 it used the name. That's why the regression was introduced

Copy link
Member

Choose a reason for hiding this comment

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

@flostadler that's very unfortunate. I'll add to our roadmap one more time the task of covering all patches with tests. It has to be done alas.

Copy link

github-actions bot commented Jun 3, 2024

Does the PR have any schema changes?

Looking good! No breaking changes found.
No new resources/functions.

Maintainer note: consult the runbook for dealing with any breaking changes.

@flostadler flostadler requested a review from a team June 3, 2024 21:40
@flostadler
Copy link
Contributor Author

/release patch

@github-actions github-actions bot added the needs-release/patch When a PR with this label merges, it initiates a release of vX.Y.Z+1 label Jun 4, 2024
@flostadler flostadler merged commit b61bb34 into master Jun 4, 2024
24 checks passed
@flostadler flostadler deleted the regress-4011 branch June 4, 2024 15:24
@github-actions github-actions bot removed the needs-release/patch When a PR with this label merges, it initiates a release of vX.Y.Z+1 label Jun 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

aws.ssm.getParameter doesn't return value
3 participants