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

Upstream v5.70.0 #4604

Merged
merged 6 commits into from
Oct 4, 2024
Merged

Upstream v5.70.0 #4604

merged 6 commits into from
Oct 4, 2024

Conversation

flostadler
Copy link
Contributor

@flostadler flostadler commented Oct 4, 2024

  • Move upstream to v5.70.0
  • ./scripts/tidy-all.sh
  • ./scripts/patch_computed_only.sh
  • Set up computed IDs
  • Regen schema
  • Regen SDK

The detected breaking change in getStandardsControlAssociations is expected and benign. The output standardsControlAssociations snuck its way into the inputs in upstream, but it wasn't usable. This PR fixed it upstream: hashicorp/terraform-provider-aws@f2a5704

Additionally this corrects the ComputedID of aws_iam_role_policies_exclusive.

closes #4602

@flostadler flostadler requested a review from a team October 4, 2024 07:57
@flostadler flostadler self-assigned this Oct 4, 2024
@@ -5848,9 +5848,18 @@ func setupComputedIDs(prov *tfbridge.ProviderInfo) {
return attr(state, "functionName"), nil
}
prov.Resources["aws_iam_role_policies_exclusive"].ComputeID = func(ctx context.Context, state resource.PropertyMap) (resource.ID, error) {
return attr(state, "role_name"), nil
return attr(state, "roleName"), nil
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@t0yv0 @corymhall please correct me if I'm wrong, but I think the computed ID for iam.RolePoliciesExclusive was set wrongly.

Copy link
Contributor

Choose a reason for hiding this comment

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

whoops 🤦🏼‍♂️

prov.Resources["aws_iam_group_policies_exclusive"].ComputeID = func(ctx context.Context, state resource.PropertyMap) (resource.ID, error) {
return attr(state, "groupName"), nil
}
prov.Resources["aws_iam_user_policies_exclusive"].ComputeID = func(ctx context.Context, state resource.PropertyMap) (resource.ID, error) {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

}
prov.Resources["aws_elasticache_reserved_cache_node"].ComputeID = func(ctx context.Context, state resource.PropertyMap) (resource.ID, error) {
return attr(state, "id"), nil
}
prov.Resources["aws_bedrock_guardrail_version"].ComputeID = func(ctx context.Context, state resource.PropertyMap) (resource.ID, error) {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

prov.Resources["aws_bedrock_guardrail_version"].ComputeID = func(ctx context.Context, state resource.PropertyMap) (resource.ID, error) {
return attr(state, "guardrailArn", "version"), nil
}
prov.Resources["aws_iam_group_policies_exclusive"].ComputeID = func(ctx context.Context, state resource.PropertyMap) (resource.ID, error) {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Copy link

github-actions bot commented Oct 4, 2024

Does the PR have any schema changes?

Found 1 breaking change:

Functions

  • 🟡 "aws:securityhub/getStandardsControlAssociations:getStandardsControlAssociations": inputs: "standardsControlAssociations" missing input "standardsControlAssociations"

New resources:

  • backup/logicallyAirGappedVault.LogicallyAirGappedVault
  • bedrock/guardrailVersion.GuardrailVersion
  • ec2transitgateway/defaultRouteTableAssociation.DefaultRouteTableAssociation
  • ec2transitgateway/defaultRouteTablePropagation.DefaultRouteTablePropagation
  • iam/groupPoliciesExclusive.GroupPoliciesExclusive
  • iam/userPoliciesExclusive.UserPoliciesExclusive
  • securityhub/standardsControlAssociation.StandardsControlAssociation

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

@flostadler flostadler requested review from t0yv0 and corymhall October 4, 2024 09:10
@flostadler flostadler merged commit 77f656d into master Oct 4, 2024
31 checks passed
@flostadler flostadler deleted the flostadler/upstream-5.70.0 branch October 4, 2024 12:52
@pulumi-bot
Copy link
Contributor

This PR has been shipped in release v6.55.0.

zemnmez-renovate-bot added a commit to zemn-me/monorepo that referenced this pull request Oct 7, 2024
##### [`v6.55.0](https://github.com/pulumi/pulumi-aws/releases/tag/v6.55.0)

##### Does the PR have any schema changes?

Found 1 breaking change:

##### Functions

-   `🟡` "aws:securityhub/getStandardsControlAssociations:getStandardsControlAssociations": inputs: "standardsControlAssociations" missing input "standardsControlAssociations"

##### New resources:

-   `backup/logicallyAirGappedVault.LogicallyAirGappedVault`
-   `bedrock/guardrailVersion.GuardrailVersion`
-   `ec2transitgateway/defaultRouteTableAssociation.DefaultRouteTableAssociation`
-   `ec2transitgateway/defaultRouteTablePropagation.DefaultRouteTablePropagation`
-   `iam/groupPoliciesExclusive.GroupPoliciesExclusive`
-   `iam/userPoliciesExclusive.UserPoliciesExclusive`
-   `securityhub/standardsControlAssociation.StandardsControlAssociation`

#### What's Changed

-   Upstream v5.70.0 by [@flostadler](https://github.com/flostadler) in pulumi/pulumi-aws#4604
-   Update GitHub Actions workflows. by [@pulumi-bot](https://github.com/pulumi-bot) in pulumi/pulumi-aws#4608
-   Allow running gamelift test in parallel by [@flostadler](https://github.com/flostadler) in pulumi/pulumi-aws#4609

**Full Changelog**: pulumi/pulumi-aws@v6.54.2...v6.55.0
github-merge-queue bot pushed a commit to zemn-me/monorepo that referenced this pull request Oct 7, 2024
##### [`v6.55.0](https://github.com/pulumi/pulumi-aws/releases/tag/v6.55.0)

##### Does the PR have any schema changes?

Found 1 breaking change:

##### Functions

-   `🟡` "aws:securityhub/getStandardsControlAssociations:getStandardsControlAssociations": inputs: "standardsControlAssociations" missing input "standardsControlAssociations"

##### New resources:

-   `backup/logicallyAirGappedVault.LogicallyAirGappedVault`
-   `bedrock/guardrailVersion.GuardrailVersion`
-   `ec2transitgateway/defaultRouteTableAssociation.DefaultRouteTableAssociation`
-   `ec2transitgateway/defaultRouteTablePropagation.DefaultRouteTablePropagation`
-   `iam/groupPoliciesExclusive.GroupPoliciesExclusive`
-   `iam/userPoliciesExclusive.UserPoliciesExclusive`
-   `securityhub/standardsControlAssociation.StandardsControlAssociation`

#### What's Changed

-   Upstream v5.70.0 by [@flostadler](https://github.com/flostadler) in pulumi/pulumi-aws#4604
-   Update GitHub Actions workflows. by [@pulumi-bot](https://github.com/pulumi-bot) in pulumi/pulumi-aws#4608
-   Allow running gamelift test in parallel by [@flostadler](https://github.com/flostadler) in pulumi/pulumi-aws#4609

**Full Changelog**: pulumi/pulumi-aws@v6.54.2...v6.55.0
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.

Upgrade terraform-provider-aws to v5.70.0
3 participants