Skip to content

Commit

Permalink
platform/aws: set s3 master key to tnc rest like url
Browse files Browse the repository at this point in the history
  • Loading branch information
enxebre committed Mar 5, 2018
1 parent d331932 commit c331064
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion steps/assets/resources/rm-assets.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ s3_clean() {
set -o pipefail
REGION=$(wget -q -O - http://169.254.169.254/latest/meta-data/placement/availability-zone | sed '"'"'s/[a-zA-Z]$//'"'"')
/usr/bin/aws --region="$REGION" s3 cp /tmp/assets.zip s3://"$LOCATION/assets.zip"
/usr/bin/aws --region="$REGION" s3 cp /tmp/assets.zip s3://"$LOCATION/ign"
/usr/bin/aws --region="$REGION" s3 cp /tmp/assets.zip s3://"$LOCATION/ign/v1/role/master"
'
}

Expand Down
2 changes: 1 addition & 1 deletion steps/bootstrap/s3-assets.tf
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ data "archive_file" "assets" {
# Ignition
resource "aws_s3_bucket_object" "ignition_bootstrap" {
bucket = "${aws_s3_bucket.tectonic.bucket}"
key = "ign"
key = "ign/v1/role/master"
content = "${local.ignition_bootstrap}"
acl = "public-read"

Expand Down

0 comments on commit c331064

Please sign in to comment.