Menu
AWS CloudFormation
User Guide (API Version 2010-05-15)

AWS::OpsWorks::UserProfile

The AWS::OpsWorks::UserProfile configures SSH access for users who require access to instances in an AWS OpsWorks stack.

Syntax

JSON

Copy
{ "Type" : "AWS::OpsWorks::UserProfile", "Properties" : { "AllowSelfManagement" : Boolean, "IamUserArn" : String, "SshPublicKey" : String } }

YAML

Copy
Type: "AWS::OpsWorks::UserProfile" Properties: AllowSelfManagement: Boolean IamUserArn: String SshPublicKey: String

Properties

AllowSelfManagement

Indicates whether users can use the AWS OpsWorks My Settings page to specify their own SSH public key. For more information, see Setting an IAM User's Public SSH Key in the AWS OpsWorks User Guide.

Required: No

Type: Boolean

Update requires: No interruption

IamUserArn

The Amazon Resource Name (ARN) of the AWS Identity and Access Management (IAM) user to associate with this configuration.

Required: Yes

Type: String

Update requires: Replacement

SshPublicKey

The public SSH key that is associated with the IAM user. The IAM user must have or be given the corresponding private key to access instances.

Required: No

Type: String

Update requires: No interruption

Return Value

Ref

When the logical ID of this resource is provided to the Ref intrinsic function, Ref returns the IAM user ARN, such as arn:aws:iam::123456789012:user/opsworksuser.

For more information about using the Ref function, see Ref.

Example

The following example registers a public key to the testUser IAM user. The user can also use self-management to specify his or her own public key.

JSON

Copy
"userProfile": { "Type": "AWS::OpsWorks::UserProfile", "Properties": { "IamUserArn": { "Fn::GetAtt": ["testUser", "Arn"] }, "AllowSelfManagement": "true", "SshPublicKey": "xyz1234567890" } }

YAML

Copy
userProfile: Type: AWS::OpsWorks::UserProfile Properties: IamUserArn: !GetAtt [testUser, Arn] AllowSelfManagement: 'true' SshPublicKey: xyz1234567890