我正在 cloudformation 中创建一个 cloud9 实例,如下所示:
Resources:
DevEnv:
Type: 'AWS::Cloud9::EnvironmentEC2'
Properties:
SubnetId: !Ref PublicSubnet
Name: MyEnvironment
InstanceType: !Ref Cloud9InstanceType
随后,我想在该 EC2 实例上运行一个 bash 脚本(在 cloudformation 脚本中)以正确设置它。我怎么做?