Skip to content

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

Description

@joanbonilla

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions