Skip to content

Commit

Permalink
Remove managed_policy_arns from Movetostatus
Browse files Browse the repository at this point in the history
  • Loading branch information
turkenf committed Aug 29, 2023
1 parent c5e2154 commit 9a1f62e
Show file tree
Hide file tree
Showing 4 changed files with 41 additions and 8 deletions.
22 changes: 22 additions & 0 deletions apis/iam/v1beta1/zz_generated.deepcopy.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 7 additions & 0 deletions apis/iam/v1beta1/zz_role_types.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 0 additions & 8 deletions config/iam/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,14 +30,6 @@ func Configure(p *config.Provider) {
}
})

p.AddResourceConfigurator("aws_iam_role", func(r *config.Resource) {
// Mutually exclusive with:
// aws_iam_policy_attachment
// aws_iam_role_policy_attachment
// aws_iam_role_policy
config.MoveToStatus(r.TerraformResource, "managed_policy_arns")
})

p.AddResourceConfigurator("aws_iam_instance_profile", func(r *config.Resource) {
r.References = config.References{
"role": config.Reference{
Expand Down
12 changes: 12 additions & 0 deletions package/crds/iam.aws.upbound.io_roles.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,12 @@ spec:
type: string
type: object
type: array
managedPolicyArns:
description: Set of exclusive IAM managed policy ARNs to attach
to the IAM role. Configuring an empty set (i.e.
items:
type: string
type: array
maxSessionDuration:
description: Maximum session duration (in seconds) that you want
to set for the specified role. If you do not specify a value
Expand Down Expand Up @@ -150,6 +156,12 @@ spec:
type: string
type: object
type: array
managedPolicyArns:
description: Set of exclusive IAM managed policy ARNs to attach
to the IAM role. Configuring an empty set (i.e.
items:
type: string
type: array
maxSessionDuration:
description: Maximum session duration (in seconds) that you want
to set for the specified role. If you do not specify a value
Expand Down

0 comments on commit 9a1f62e

Please sign in to comment.