Skip to content

Commit

Permalink
fix(basti-cdk): unblock basti instance role update
Browse files Browse the repository at this point in the history
Signed-off-by: Bohdan Petryshyn <b.y.petryshyn@gmail.com>
  • Loading branch information
BohdanPetryshyn committed Oct 24, 2024
1 parent ffe7a98 commit 5388cc8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions packages/basti-cdk/src/__test__/basti-instance.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ describe('BastiInstanceTest', () => {
});

template.hasResourceProperties('AWS::IAM::Role', {
RoleName: 'basti-instance-d8b7dc8b',
RoleName: 'basti-instance-d8b7dc8b-v2',
AssumeRolePolicyDocument: {
Statement: [
{
Expand Down Expand Up @@ -163,7 +163,7 @@ describe('BastiInstanceTest', () => {
});

template.hasResourceProperties('AWS::IAM::Role', {
RoleName: 'basti-instance-TEST_ID',
RoleName: 'basti-instance-TEST_ID-v2',
AssumeRolePolicyDocument: {
Statement: [
{
Expand Down
2 changes: 1 addition & 1 deletion packages/basti-cdk/src/basti-instance.ts
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ export class BastiInstance extends Construct implements IBastiInstance {

this.role = new aws_iam.Role(this, 'IamRoleBastionInstance', {
assumedBy: new aws_iam.ServicePrincipal('ec2.amazonaws.com'),
roleName: `${BASTION_INSTANCE_ROLE_NAME_PREFIX}-${this.bastiId}`,
roleName: `${BASTION_INSTANCE_ROLE_NAME_PREFIX}-${this.bastiId}-v2`,
path: `${BASTION_INSTANCE_ROLE_PATH_PREFIX}/${region}/`,
inlinePolicies: {
'session-manager-access': sessionManagerPolicy,
Expand Down

0 comments on commit 5388cc8

Please sign in to comment.