From 9239207daa23546e5961233c581afaca1bb398ef Mon Sep 17 00:00:00 2001 From: NicoSerranoP Date: Fri, 16 Aug 2024 16:32:39 -0300 Subject: [PATCH] feat: use AWS tag to comply to PSE policies --- packages/actions/.env.default | 2 ++ packages/actions/src/helpers/vm.ts | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/packages/actions/.env.default b/packages/actions/.env.default index e8163121..d14b72cd 100644 --- a/packages/actions/.env.default +++ b/packages/actions/.env.default @@ -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. diff --git a/packages/actions/src/helpers/vm.ts b/packages/actions/src/helpers/vm.ts index 7cd78ba4..9aa197a6 100644 --- a/packages/actions/src/helpers/vm.ts +++ b/packages/actions/src/helpers/vm.ts @@ -196,6 +196,10 @@ export const createEC2Instance = async ( { Key: "Initialized", Value: "false" + }, + { + Key: "ProjectName", + Value: process.env.AWS_TAG_VALUE } ] }