aws-samples / aws-samples/aws-aurora-cloudformation-samples

VPC-SSH-Bastion.yml fails because of the bastion_bootstrap script 1.4 in the current AMI

Open
#3 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
No language data
Stars
88
Forks
86
PR merge metrics
No merged PRs in 30d

Description

The **VPC-SSH-Bastion.yml** template is broken with the latest version of bastion_bootstrap.sh script
The signal received from the AutoScalingGroup resource to CloudFormation is Failure because of the bastion bootstrap script.

If I search for errors in the bastion instance with the command:

`grep -ni 'error\|failure' $(sudo find /var/log -name cfn\* -or -name cloud-init\*)`

I can see:

```
/var/log/cfn-init.log:22:2021-12-30 16:21:16,428 [ERROR] Command b-bootstrap (REGION=eu-west-1 URL_SUFFIX=amazonaws.com BANNER_REGION=eu-west-1 ./bastion_bootstrap.sh --banner s3://aws-quickstart-eu-west-1/quickstart-linux-bastion/scripts/banner_message.txt --enable true --tcp-forwarding false --x11-forwarding false) failed
/var/log/cfn-init.log:43:2021-12-30 16:21:16,428 [ERROR] Error encountered during build of config: Command b-bootstrap failed
```

So the issue is in the UserData parameter in CloudFormation

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.