Instantly share code, notes, and snippets.

Embed
What would you like to do?
AWS / MFA + CLI / CloudFormation / Example / Users
{
"AWSTemplateFormatVersion": "2010-09-09",
"Resources": {
"BarbaraUser" : {
"Type": "AWS::IAM::User",
"Properties": {
"Groups": [ { "Fn::ImportValue": "MFAGroupsStack-BossGroup" } ],
"UserName": "barbara"
}
},
"MaryUser" : {
"Type": "AWS::IAM::User",
"Properties": {
"Groups": [ { "Fn::ImportValue": "MFAGroupsStack-MarketingGroup" } ],
"UserName": "mary"
}
},
"MatthewUser" : {
"Type": "AWS::IAM::User",
"Properties": {
"Groups": [ { "Fn::ImportValue": "MFAGroupsStack-MarketingGroup" } ],
"UserName": "matthew"
}
},
"StewartUser" : {
"Type": "AWS::IAM::User",
"Properties": {
"Groups": [ { "Fn::ImportValue": "MFAGroupsStack-SalesGroup" } ],
"UserName": "stewart"
}
},
"SamUser" : {
"Type": "AWS::IAM::User",
"Properties": {
"Groups": [ { "Fn::ImportValue": "MFAGroupsStack-SalesGroup" } ],
"UserName": "sam"
}
},
"StanUser" : {
"Type": "AWS::IAM::User",
"Properties": {
"Groups": [
{ "Fn::ImportValue": "MFAGroupsStack-BossGroup" },
{ "Fn::ImportValue": "MFAGroupsStack-MarketingGroup" },
{ "Fn::ImportValue": "MFAGroupsStack-SalesGroup" }
],
"UserName": "stan"
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment