IAM 的 AWS Cloudformation 模板帮助
AWS Cloudformation Template help for IAM
我不熟悉在 Cloudformation 中创建模板。
我有一个要求,我需要创建一个带有密码和访问密钥的 IAM 用户,密码应该在第一次登录时更改,我应该创建一个 IAM 组,在该组中应该添加一组管理策略和自定义策略。
我该怎么办,请帮忙
谢谢
萨蒂什
---
AWSTemplateFormatVersion: '2010-09-09'
Description: 'IAM user'
Parameters:
UserName:
Type: String
Password:
Type: String
NoEcho: true
Resources:
Type: 'AWS::IAM::User'
Properties:
LoginProfile:
Password: !Ref Password
PasswordResetRequired: true
ManagedPolicyArns:
- 'arn:aws:iam::aws:policy/AdministratorAccess'
UserName: !Ref UserName
下次:为什么不直接使用 google?
http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iam-user.html and the password is set in the LoginProfile http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iam-user-loginprofile.html
我不熟悉在 Cloudformation 中创建模板。 我有一个要求,我需要创建一个带有密码和访问密钥的 IAM 用户,密码应该在第一次登录时更改,我应该创建一个 IAM 组,在该组中应该添加一组管理策略和自定义策略。
我该怎么办,请帮忙
谢谢 萨蒂什
---
AWSTemplateFormatVersion: '2010-09-09'
Description: 'IAM user'
Parameters:
UserName:
Type: String
Password:
Type: String
NoEcho: true
Resources:
Type: 'AWS::IAM::User'
Properties:
LoginProfile:
Password: !Ref Password
PasswordResetRequired: true
ManagedPolicyArns:
- 'arn:aws:iam::aws:policy/AdministratorAccess'
UserName: !Ref UserName
下次:为什么不直接使用 google?
http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iam-user.html and the password is set in the LoginProfile http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iam-user-loginprofile.html