Skip to content

Commit

Permalink
feat: use AWS tag to comply to PSE policies
Browse files Browse the repository at this point in the history
  • Loading branch information
NicoSerranoP committed Aug 16, 2024
1 parent e502145 commit 9239207
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/actions/.env.default
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,8 @@ AWS_REGION="YOUR-AWS-REGION"
AWS_AMI_ID="ami-022e1a32d3f742bd8"
# The IAM instance profile for the EC2 instance to assume
AWS_INSTANCE_PROFILE_ARN="YOUR-AWS-INSTANCE-PROFILE-ARN"
# The AWS tag key for each element to create (comply to PSE's AWS policy)
AWS_TAG_VALUE="trusted-setup"

### AUTHENTICATION ###
### These configs are related to the authentication of users.
Expand Down
4 changes: 4 additions & 0 deletions packages/actions/src/helpers/vm.ts
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,10 @@ export const createEC2Instance = async (
{
Key: "Initialized",
Value: "false"
},
{
Key: "ProjectName",
Value: process.env.AWS_TAG_VALUE
}
]
}
Expand Down

0 comments on commit 9239207

Please sign in to comment.