User Data Bag (aws_opsworks_user)
Important
AWS OpsWorks Stacks is no longer accepting new customers. Existing customers will be able to use the OpsWorks console, API, CLI, and CloudFormation resources as normal until May 26, 2024, at which time they will be discontinued. To prepare for this transition, we recommend you transition your stacks to AWS Systems Manager as soon as possible. For more information, see AWS OpsWorks Stacks End of Life FAQs and Migrating your AWS OpsWorks Stacks applications to AWS Systems Manager Application Manager.
Represents a user's settings.
The following example shows how to use Chef search to search through a single data bag item and then multiple data bag items to write messages to the Chef log with the users' user names and Amazon Resource Names (ARNs):
user = search("aws_opsworks_user").first Chef::Log.info("********** The user's user name is '#{user['username']}' **********") Chef::Log.info("********** The user's user ARN is '#{user['iam_user_arn']}' **********") # Or... search("aws_opsworks_user").each do |user| Chef::Log.info("********** The user's user name is '#{user['username']}' **********") Chef::Log.info("********** The user's user ARN is '#{user['iam_user_arn']}' **********") end
- administrator_privileges
-
Whether the user has administrator privileges (Boolean).
- iam_user_arn
-
The user's Amazon Resource Name (ARN) (string).
- remote_access
-
Whether the user can use RDP to log in to the instance (Boolean).
- ssh_public_key
-
The user's public key, as provided through the AWS OpsWorks Stacks console or API (string).
- unix_user_id
-
The user's Unix ID (number).
- username
-
The user name (string).