# NOT RUN {
# This example modifies your account settings to opt in to the new ARN and
# resource ID format for Amazon ECS services. If you<U+00E2><U+20AC><U+2122>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.
# }
# NOT RUN {
svc$put_account_setting(
name = "serviceLongArnFormat",
value = "enabled"
)
# }
# NOT RUN {
# 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<U+00E2><U+20AC><U+2122>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.
# }
# NOT RUN {
svc$put_account_setting(
name = "containerInstanceLongArnFormat",
value = "enabled",
principalArn = "arn:aws:iam::<aws_account_id>:user/principalName"
)
# }
# NOT RUN {
# }
Run the code above in your browser using DataLab