Installing packages using apt-get in CloudFormation file

前端 未结 2 941
迷失自我
迷失自我 2021-01-14 01:08

I\'ve got the following CloudFormation script. The stack is being created and the Ec2 instance launches, and I can SSH in but it\'s not installing the packages.

I\'m

2条回答
  •  忘掉有多难
    2021-01-14 01:47

    You need to include the Cloudformation Init attribute in the Metadata property of the instance. The cfn-init script uses this meta data to determine what actions should be taken on boot.

    In your sample code though, it does not look like you are even trying to install any packages, so I am not sure what package you are expecting to be present.

提交回复
热议问题