Skip to content

Commit

Permalink
Fix example manifest for:
Browse files Browse the repository at this point in the history
- aws_autoscaling_policy
- aws_securityhub_account
- aws_secretsmanager_secret_rotation
- aws_ssoadmin_permission_set_inline_policy
  • Loading branch information
turkenf committed May 10, 2023
1 parent 0341174 commit ff806fe
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 12 deletions.
14 changes: 9 additions & 5 deletions examples/autoscaling/policy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,18 @@ metadata:
meta.upbound.io/example-id: ecs/v1beta1/capacityprovider
labels:
testing.upbound.io/example-name: example
name: example
name: upbound-example-test
spec:
forProvider:
region: us-west-1
availabilityZones:
- us-west-1b
maxSize: 1
minSize: 1
- us-west-1a
waitForCapacityTimeout: "0"
maxSize: 5
minSize: 2
healthCheckGracePeriod: 300
healthCheckType: ELB
forceDelete: true
launchConfigurationSelector:
matchLabels:
testing.upbound.io/example-name: as_conf
Expand All @@ -56,6 +60,6 @@ metadata:
name: as-conf
spec:
forProvider:
imageId: ami-0a1a70369f0fce06a
imageId: ${data.aws_ami.ubuntu.id}
instanceType: t2.micro
region: us-west-1
2 changes: 2 additions & 0 deletions examples/secretsmanager/secretrotation.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ kind: SecretRotation
metadata:
annotations:
meta.upbound.io/example-id: secretsmanager/v1beta1/secretrotation
upjet.upbound.io/manual-intervention: "The lambda.Function resource that is dependent on this resource requires manual intervention."
labels:
testing.upbound.io/example-name: example
name: example
Expand Down Expand Up @@ -60,6 +61,7 @@ kind: Function
metadata:
annotations:
meta.upbound.io/example-id: secretsmanager/v1beta1/secretrotation
upjet.upbound.io/manual-intervention: "This resource needs a s3.Bucket resource containing the hello-python.zip file."
labels:
testing.upbound.io/example-name: example
name: example-secretrotation
Expand Down
5 changes: 2 additions & 3 deletions examples/securityhub/account.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,9 @@ kind: Account
metadata:
annotations:
meta.upbound.io/example-id: securityhub/v1beta1/account
uptest.upbound.io/pre-delete-hook: testhooks/delete-account-dependent-resources.sh
labels:
testing.upbound.io/example-name: example
name: example
name: example-${Rand.RFC1123Subdomain}
spec:
forProvider:
region: us-west-1
region: us-west-1
7 changes: 3 additions & 4 deletions examples/ssoadmin/permissionsetinlinepolicy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,14 @@ kind: PermissionSetInlinePolicy
metadata:
annotations:
meta.upbound.io/example-id: ssoadmin/v1beta1/permissionsetinlinepolicy
upjet.upbound.io/manual-intervention: "This resource was skipped because this is dependent on the PermissionSet resource."
upjet.upbound.io/manual-intervention: "This resource requires a valid instanceArn(The Amazon Resource Name (ARN) of the SSO Instance under which
the operation will be executed)."
labels:
testing.upbound.io/example-name: example
name: example
spec:
forProvider:
instanceArnSelector:
matchLabels:
testing.upbound.io/example-name: example
instanceArn: ${tolist(data.aws_ssoadmin_instances.example.arns)[0]}
permissionSetArnSelector:
matchLabels:
testing.upbound.io/example-name: example
Expand Down

0 comments on commit ff806fe

Please sign in to comment.