user
You can use the users key to create Linux/UNIX users on the EC2 instance. The user method maps to the AWS::CloudFormation::Init users section.
Example
user("myUser",
groups: ["groupOne", "groupTwo"],
uid: "50",
homeDir: "/tmp",
)
user("bob",
groups: ["groupOne"],
uid: "51",
homeDir: "/home/bob",
)
Generates:
AWS::CloudFormation::Init:
configSets:
default:
- main
main:
users:
myUser:
groups:
- groupOne
- groupTwo
uid: '50'
homeDir: "/tmp"
bob:
groups:
- groupOne
uid: '51'
homeDir: "/home/bob"
Back to DSL Docs
Pro tip: Use the <- and -> arrow keys to move back and forward.
Edit this page
See a typo or an error? You can improve this page. This website is available on GitHub and contributions are encouraged and welcomed. We love pull requests from you!
- Suggest an edit to this page (here's the contributing guide).
- Open an issue about this page to report a problem.