Skip to content

Commit

Permalink
Merge pull request #228 from NASA-IMPACT/fix/ecs_ami
Browse files Browse the repository at this point in the history
Fix upstream AMI issue with launch templates.
  • Loading branch information
sharkinsspatial authored Aug 24, 2022
2 parents a26916e + 36fd14e commit 30d7944
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
4 changes: 1 addition & 3 deletions stack/hlsconstructs/batch.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,7 @@ def __init__(
"CloudWatchAgentServerPolicy"
),
],
inline_policies={
"efs_document": efs_policy_document
}
inline_policies={"efspolicy": efs_policy_document},
)

ecs_instance_profile = aws_iam.CfnInstanceProfile(
Expand Down
2 changes: 1 addition & 1 deletion stack/hlsconstructs/userdata.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ packages:
- mdadm

runcmd:
- yum update -y --exclude="chrony*"
- ephemeral_disks=$(realpath -P /dev/disk/by-id/nvme*Instance_Storage* | uniq)
- ephemeral_disks_count=$(echo "$ephemeral_disks" | wc -w)
- scratch_fs=ext4
Expand Down Expand Up @@ -35,7 +36,6 @@ runcmd:
Content-Type: text/cloud-boothook; charset="us-ascii"

# Install amazon-efs-utils
cloud-init-per once yum_update yum update -y
cloud-init-per once install_amazon-efs-utils yum install -y amazon-efs-utils

# Create /efs folder
Expand Down
2 changes: 1 addition & 1 deletion stack/hlsconstructs/userdata_no_cw.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ packages:
- mdadm

runcmd:
- yum update -y --exclude="chrony*"
- ephemeral_disks=$(realpath -P /dev/disk/by-id/nvme*Instance_Storage* | uniq)
- ephemeral_disks_count=$(echo "$ephemeral_disks" | wc -w)
- scratch_fs=ext4
Expand Down Expand Up @@ -35,7 +36,6 @@ runcmd:
Content-Type: text/cloud-boothook; charset="us-ascii"

# Install amazon-efs-utils
cloud-init-per once yum_update yum update -y
cloud-init-per once install_amazon-efs-utils yum install -y amazon-efs-utils

# Create /efs folder
Expand Down

0 comments on commit 30d7944

Please sign in to comment.