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

chore: switch assume-role-session-tags test to ccapi role #5036

Merged
merged 1 commit into from
Jan 7, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 5 additions & 17 deletions examples/test-programs/assume-role-session-tags/Pulumi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,9 @@ resources:
type: pulumi:providers:aws

iamRole:
type: aws:iam:Role
type: aws-native:iam:Role
properties:
assumeRolePolicy:
fn::toJSON:
assumeRolePolicyDocument:
Version: "2012-10-17"
Statement:
- Action:
Expand All @@ -32,10 +31,9 @@ resources:
StringEquals:
"aws:RequestTag/Repository":
- "my-org/my-repo"
inlinePolicies:
- name: "inline-policy"
policy:
fn::toJSON:
policies:
- policyName: "inline-policy"
policyDocument:
Version: "2012-10-17"
Statement:
- Action:
Expand All @@ -45,13 +43,6 @@ resources:
options:
provider: ${bootstrapProvider}

# IAM has a delay in propagating the new role, so we need to wait for it to be available
# AWS is aiming for P99 below 2s so 6s should be enough
wait6s:
type: time:Sleep
properties:
createDuration: 6s

provider:
type: pulumi:providers:aws
properties:
Expand All @@ -60,9 +51,6 @@ resources:
sessionName: "session-tagging-test"
tags:
Repository: "my-org/my-repo"
options:
dependsOn:
- ${wait6s}

myTestBucket:
type: aws:s3:Bucket
Expand Down
Loading