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

aws/k8s 인증 방식 정리 #2832

Merged
merged 1 commit into from
Oct 26, 2024
Merged
Show file tree
Hide file tree
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
2 changes: 2 additions & 0 deletions apps/bedrock/Pulumi.prod.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
config:
aws:profile: withglyph
aws:defaultTags:
tags:
pulumi.withglyph.io/project: bedrock
pulumi.withglyph.io/stack: prod
kubernetes:context: arn:aws:eks:ap-northeast-2:721144421085:cluster/penxle
67 changes: 0 additions & 67 deletions apps/bedrock/pulumi/aws/cloudtrail.ts

This file was deleted.

21 changes: 21 additions & 0 deletions apps/bedrock/pulumi/aws/iam.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,27 @@ new aws.iam.GroupPolicy('team', {
},
});

const adminRole = new aws.iam.Role('admin@team', {
name: 'admin@team',
assumeRolePolicy: aws.iam.assumeRolePolicyForPrincipal({
AWS: '886436942314',
}),
});

new aws.iam.RolePolicy('admin@team', {
role: adminRole.name,
policy: {
Version: '2012-10-17',
Statement: [
{
Effect: 'Allow',
Action: '*',
Resource: '*',
},
],
},
});

const datadogIntegration = new aws.iam.Role('integration@datadog', {
name: 'integration@datadog',
assumeRolePolicy: aws.iam.assumeRolePolicyForPrincipal({
Expand Down
1 change: 1 addition & 0 deletions apps/bedrock/pulumi/aws/providers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@ import * as aws from '@pulumi/aws';

export const usEast1 = new aws.Provider('us-east-1', {
region: 'us-east-1',
profile: 'withglyph',
});
Loading