Skip to content

Commit

Permalink
userdata.sh creds
Browse files Browse the repository at this point in the history
  • Loading branch information
Priyankg101 committed Oct 11, 2023
1 parent 22cd36d commit 362ff37
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/tvarit/conf/prod/lightsail.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ sleep 300
rm -rf awscliv2.zip

#with only ECR pull access. TODO: update
AWS_ACCESS_KEY_ID=${AWS_ACCESS_KEY_ID_016}
AWS_SECRET_ACCESS_KEY=${AWS_SECRET_KEY_ID_016}
AWS_ACCESS_KEY_ID=<AWS_ACCESS_KEY/>
AWS_SECRET_ACCESS_KEY=<AWS_SECRET_KEY/>
AWS_REGION="eu-central-1"

aws configure set aws_access_key_id $AWS_ACCESS_KEY_ID
Expand Down
4 changes: 2 additions & 2 deletions .github/tvarit/deploy_to_dev_16.sh
Original file line number Diff line number Diff line change
Expand Up @@ -166,8 +166,8 @@ fi

echo "Creating lightsail instance!!!!!!"
cp lightsail.sh userdata.sh
sed -i "s#<AWS_ACCESS_KEY/>#${AWS_ACCESS_KEY}#g" userdata.sh
sed -i "s#<AWS_SECRET_KEY/>#${AWS_SECRET_KEY}#g" userdata.sh
sed -i "s#<AWS_ACCESS_KEY/>#${AWS_ACCESS_KEY_ID_016}#g" userdata.sh
sed -i "s#<AWS_SECRET_KEY/>#${AWS_SECRET_KEY_ID_016}#g" userdata.sh

aws lightsail create-instances --instance-names grafana-${PREFIX} --availability-zone eu-central-1a --blueprint-id ubuntu_22_04 --bundle-id nano_2_0 --user-data file://userdata.sh
echo "waiting for user data to be executed in the instance"
Expand Down

0 comments on commit 362ff37

Please sign in to comment.