if (FALSE) {
# This example modifies your account settings to opt in to the new ARN and
# resource ID format for Amazon ECS services. If you’re using this command
# as the root user, then changes apply to the entire AWS account, unless
# an IAM user or role explicitly overrides these settings for themselves.
svc$put_account_setting(
name = "serviceLongArnFormat",
value = "enabled"
)
# This example modifies the account setting for a specific IAM user or IAM
# role to opt in to the new ARN and resource ID format for Amazon ECS
# container instances. If you’re using this command as the root user, then
# changes apply to the entire AWS account, unless an IAM user or role
# explicitly overrides these settings for themselves.
svc$put_account_setting(
name = "containerInstanceLongArnFormat",
value = "enabled",
principalArn = "arn:aws:iam:::user/principalName"
)
}
Run the code above in your browser using DataLab