Skip to content

Commit

Permalink
Update cloud-infra.yaml
Browse files Browse the repository at this point in the history
fix '
  • Loading branch information
JordanLaserGit authored Feb 9, 2024
1 parent a7f5912 commit 46123fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/cloud-infra.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
- name: Create AMI
run: |
curl -L -O https://github.com/CIROH-UA/ngen-datastream/blob/main/cloud/AWS/startup_ec2.sh
output=$(aws ec2 run-instances --image-id resolve:ssm:/aws/service/ami-amazon-linux-latest/al2023-ami-kernel-default-x86_64 --instance-type $INSTANCE_TYPE region $REGION key-name datastream-github.pem security-group-ids $SECURITY_GRP --name ngen-datastream_$(env TZ=US/Eastern date +'%Y%m%d%H%M) ---user-data ./startup_ec2.sh)
output=$(aws ec2 run-instances --image-id resolve:ssm:/aws/service/ami-amazon-linux-latest/al2023-ami-kernel-default-x86_64 --instance-type $INSTANCE_TYPE region $REGION key-name datastream-github.pem security-group-ids $SECURITY_GRP --name ngen-datastream_$(env TZ=US/Eastern date +'%Y%m%d%H%M') ---user-data ./startup_ec2.sh)
instance_id=$(echo $output | jq -r '.Instances[0].InstanceId')
aws ec2 wait instance-running --instance-ids $instance_id
ami_output=$(aws ec2 create-image --instance-id $instance_id --name "My_AMI_Name" --region $REGION --description "My AMI Description")
Expand Down

0 comments on commit 46123fc

Please sign in to comment.