Skip to content

Instantly share code, notes, and snippets.

@SteveHoggNZ
Created November 24, 2016 23:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save SteveHoggNZ/02c3266987f0ee17c5d9125ea910cc2f to your computer and use it in GitHub Desktop.
Save SteveHoggNZ/02c3266987f0ee17c5d9125ea910cc2f to your computer and use it in GitHub Desktop.
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