How to create an IamInstanceProfile in CloudFormation :: LaunchConfiguration

I have a CloudFormation script (courtesy of Edwin) CloudFormationScript

IamInstanceProfile = aws: iam :: 093026445011: user / qsw.internal

From script

...

"IamInstanceProfile" : {
                "Ref" : "IamInstanceProfile"
            },

...

when i run it i get:

Invalid IamInstanceProfile: arn:aws:iam::093026445011:user/qsw.internal

The Type is

AWS::AutoScaling::LaunchConfiguration

Logical ID

WebAsSpotLaunchConfiguration

Link to documentation in this field: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-as-launchconfig.html#cfn-as-launchconfig-iaminstanceprofile

I have many permissions for the account to which I asked to be assigned, and I used the ARN identifier (aws: iam :: 093026445011: user / qsw.internal).

In what areas should I look for this?

+3
source share
2 answers

, boto - python aws sdk

ec2 = boto.connect_ec2(debug=2)

HTTP-

0