Role is the Schema for the Roles API. Provides an IAM role.
Type
CRD
Group
iam.aws.upbound.io
Version
v1beta1
apiVersion: iam.aws.upbound.io/v1beta1
kind: Role
RoleSpec defines the desired state of Role
No description provided.
ProviderConfigReference specifies how the provider that will be used to create, observe, update, and delete this managed resource should be configured.
Policies for referencing.
ProviderReference specifies the provider that will be used to create, observe, update, and delete this managed resource. Deprecated: Please use ProviderConfigReference, i.e. providerConfigRef
Policies for referencing.
PublishConnectionDetailsTo specifies the connection secret config which contains a name, metadata and a reference to secret store config to which any connection details for this managed resource should be written. Connection details frequently include the endpoint, username, and password required to connect to the managed resource.
WriteConnectionSecretToReference specifies the namespace and name of a Secret to which any connection details for this managed resource should be written. Connection details frequently include the endpoint, username, and password required to connect to the managed resource. This field is planned to be replaced in a future release in favor of PublishConnectionDetailsTo. Currently, both could be set independently and connection details would be published to both without affecting each other.
RoleStatus defines the observed state of Role.
No description provided.
Set of exclusive IAM managed policy ARNs to attach to the IAM role. Configuring an empty set (i.e.
Conditions of the resource.
sample-node-role
apiVersion: iam.aws.upbound.io/v1beta1
kind: Role
metadata:
name: sample-node-role
spec:
forProvider:
assumeRolePolicy: |
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Principal": {
"Service": "ec2.amazonaws.com"
},
"Action": "sts:AssumeRole"
}
]
}
example-backup-${Rand.RFC1123Subdomain}
apiVersion: iam.aws.upbound.io/v1beta1
kind: Role
metadata:
labels:
testing.upbound.io/example-name: vault
name: example-backup-${Rand.RFC1123Subdomain}
spec:
forProvider:
assumeRolePolicy: |
{
"Version": "2012-10-17",
"Statement": [
{
"Action": ["sts:AssumeRole"],
"Effect": "allow",
"Principal": {
"Service": ["backup.amazonaws.com"]
}
}
]
}
test-${Rand.RFC1123Subdomain}
apiVersion: iam.aws.upbound.io/v1beta1
kind: Role
metadata:
labels:
testing.upbound.io/example-name: realtimelogconfig
name: test-${Rand.RFC1123Subdomain}
spec:
forProvider:
assumeRolePolicy: |
{
"Version": "2012-10-17",
"Statement": [
{
"Action": "sts:AssumeRole",
"Principal": {
"Service": "cloudfront.amazonaws.com"
},
"Effect": "Allow"
}
]
}
authenticated
apiVersion: iam.aws.upbound.io/v1beta1
kind: Role
metadata:
annotations:
upjet.upbound.io/manual-intervention: can't automatically inject ${aws_cognito_identity_pool.main.id}
labels:
testing.upbound.io/example-name: authenticated
name: authenticated
spec:
forProvider:
assumeRolePolicy: >
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Principal": {
"Federated": "cognito-identity.amazonaws.com"
},
"Action": "sts:AssumeRoleWithWebIdentity",
"Condition": {
"StringEquals": {
"cognito-identity.amazonaws.com:aud": "${aws_cognito_identity_pool.main.id}"
},
"ForAnyValue:StringLike": {
"cognito-identity.amazonaws.com:amr": "authenticated"
}
}
}
]
}
sample-role
apiVersion: iam.aws.upbound.io/v1beta1
kind: Role
metadata:
labels:
testing.upbound.io/example-name: role
name: sample-role
spec:
forProvider:
assumeRolePolicy: |
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Principal": {
"Service": "eks.amazonaws.com"
},
"Action": "sts:AssumeRole"
}
]
}
example
apiVersion: iam.aws.upbound.io/v1beta1
kind: Role
metadata:
annotations:
meta.upbound.io/example-id: deploy/v1beta1/deploymentgroup
labels:
testing.upbound.io/example-name: example
name: example
spec:
forProvider:
assumeRolePolicy: |
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "",
"Effect": "Allow",
"Principal": {
"Service": "codedeploy.amazonaws.com"
},
"Action": "sts:AssumeRole"
}
]
}
dax-cluster-example
apiVersion: iam.aws.upbound.io/v1beta1
kind: Role
metadata:
name: dax-cluster-example
spec:
forProvider:
assumeRolePolicy: |
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Principal": {
"Service": "dax.amazonaws.com"
},
"Action": "sts:AssumeRole"
}
]
}
r
apiVersion: iam.aws.upbound.io/v1beta1
kind: Role
metadata:
annotations:
meta.upbound.io/example-id: configservice/v1beta1/conformancepack
labels:
testing.upbound.io/example-name: r
name: r
spec:
forProvider:
assumeRolePolicy: |
{
"Version": "2012-10-17",
"Statement": [
{
"Action": "sts:AssumeRole",
"Principal": {
"Service": "config.amazonaws.com"
},
"Effect": "Allow",
"Sid": ""
}
]
}
sample-fargate-role
apiVersion: iam.aws.upbound.io/v1beta1
kind: Role
metadata:
name: sample-fargate-role
spec:
forProvider:
assumeRolePolicy: |
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Principal": {
"Service": "eks-fargate-pods.amazonaws.com"
},
"Action": "sts:AssumeRole"
}
]
}
firehose-to-s3
apiVersion: iam.aws.upbound.io/v1beta1
kind: Role
metadata:
annotations:
meta.upbound.io/example-id: cloudwatch/v1beta1/metricstream
labels:
testing.upbound.io/example-name: firehose_to_s3
name: firehose-to-s3
spec:
forProvider:
assumeRolePolicy: |
{
"Version": "2012-10-17",
"Statement": [
{
"Action": "sts:AssumeRole",
"Principal": {
"Service": "firehose.amazonaws.com"
},
"Effect": "Allow",
"Sid": ""
}
]
}
glue-role
apiVersion: iam.aws.upbound.io/v1beta1
kind: Role
metadata:
labels:
testing.upbound.io/example-name: glue-role
name: glue-role
spec:
forProvider:
assumeRolePolicy: |
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Principal": {
"Service": [
"glue.amazonaws.com"
]
},
"Action": [
"sts:AssumeRole"
]
}
]
}
sample-kms-principal
apiVersion: iam.aws.upbound.io/v1beta1
kind: Role
metadata:
labels:
testing.upbound.io/example-name: sample-kms-principal
name: sample-kms-principal
spec:
forProvider:
assumeRolePolicy: |
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Principal": {
"Service": "eks.amazonaws.com"
},
"Action": "sts:AssumeRole"
}
]
}
sample-db-role
apiVersion: iam.aws.upbound.io/v1beta1
kind: Role
metadata:
annotations:
upjet.upbound.io/manual-intervention: This resource is a dependency of
ClusterRoleAssociation, which needs manual intervention.
name: sample-db-role
spec:
forProvider:
assumeRolePolicy: |
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "",
"Effect": "Allow",
"Principal": {
"Service": "rds.amazonaws.com"
},
"Action": "sts:AssumeRole"
}
]
}
kinesis-app-role
apiVersion: iam.aws.upbound.io/v1beta1
kind: Role
metadata:
annotations:
meta.upbound.io/example-id: kinesisanalyticsv2/v1beta1/application
name: kinesis-app-role
spec:
forProvider:
assumeRolePolicy: |
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Principal": {
"Service": "kinesisanalytics.amazonaws.com"
},
"Action": "sts:AssumeRole"
}
]
}
test-role
apiVersion: iam.aws.upbound.io/v1beta1
kind: Role
metadata:
annotations:
meta.upbound.io/example-id: configservice/v1beta1/remediationconfiguration
labels:
testing.upbound.io/example-name: r
name: test-role
spec:
forProvider:
assumeRolePolicy: |
{
"Version": "2012-10-17",
"Statement": [
{
"Action": "sts:AssumeRole",
"Principal": {
"Service": "config.amazonaws.com"
},
"Effect": "Allow",
"Sid": ""
}
]
}
test-role
apiVersion: iam.aws.upbound.io/v1beta1
kind: Role
metadata:
annotations:
meta.upbound.io/example-id: configservice/v1beta1/awsconfigurationrecorderstatus
labels:
testing.upbound.io/example-name: r
name: test-role
spec:
forProvider:
assumeRolePolicy: |
{
"Version": "2012-10-17",
"Statement": [
{
"Action": "sts:AssumeRole",
"Principal": {
"Service": "config.amazonaws.com"
},
"Effect": "Allow",
"Sid": ""
}
]
}
example
apiVersion: iam.aws.upbound.io/v1beta1
kind: Role
metadata:
labels:
testing.upbound.io/example-name: example
name: example
spec:
forProvider:
assumeRolePolicy: |
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "",
"Effect": "Allow",
"Principal": {
"Service": "vpc-flow-logs.amazonaws.com"
},
"Action": "sts:AssumeRole"
}
]
}
codepipeline-role
apiVersion: iam.aws.upbound.io/v1beta1
kind: Role
metadata:
annotations:
meta.upbound.io/example-id: codepipeline/v1beta1/codepipeline
labels:
testing.upbound.io/example-name: codepipeline_role
name: codepipeline-role
spec:
forProvider:
assumeRolePolicy: |
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Principal": {
"Service": "codepipeline.amazonaws.com"
},
"Action": "sts:AssumeRole"
}
]
}
sample-role
apiVersion: iam.aws.upbound.io/v1beta1
kind: Role
metadata:
annotations:
meta.upbound.io/example-id: connect/v1beta1/lambdafunctionassociation
labels:
testing.upbound.io/example-name: role
name: sample-role
spec:
forProvider:
assumeRolePolicy: |
{
"Version": "2012-10-17",
"Statement": [
{
"Action": "sts:AssumeRole",
"Principal": {
"Service": "lambda.amazonaws.com"
},
"Effect": "Allow",
"Sid": ""
}
]
}
kinesis-app-role
apiVersion: iam.aws.upbound.io/v1beta1
kind: Role
metadata:
annotations:
meta.upbound.io/example-id: kinesisanalytics/v1beta1/application
name: kinesis-app-role
spec:
forProvider:
assumeRolePolicy: |
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Principal": {
"Service": "kinesisanalytics.amazonaws.com"
},
"Action": "sts:AssumeRole"
}
]
}
sample-eks-cluster
apiVersion: iam.aws.upbound.io/v1beta1
kind: Role
metadata:
name: sample-eks-cluster
spec:
forProvider:
assumeRolePolicy: |
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Principal": {
"Service": "eks.amazonaws.com"
},
"Action": "sts:AssumeRole"
}
]
}
sample-role
apiVersion: iam.aws.upbound.io/v1beta1
kind: Role
metadata:
annotations:
meta.upbound.io/example-id: connect/v1beta1/function
labels:
testing.upbound.io/example-name: role
name: sample-role
spec:
forProvider:
assumeRolePolicy: |
{
"Version": "2012-10-17",
"Statement": [
{
"Action": "sts:AssumeRole",
"Principal": {
"Service": "lambda.amazonaws.com"
},
"Effect": "Allow",
"Sid": ""
}
]
}
test-role
apiVersion: iam.aws.upbound.io/v1beta1
kind: Role
metadata:
annotations:
meta.upbound.io/example-id: configservice/v1beta1/configrule
labels:
testing.upbound.io/example-name: r
name: test-role
spec:
forProvider:
assumeRolePolicy: |
{
"Version": "2012-10-17",
"Statement": [
{
"Action": "sts:AssumeRole",
"Principal": {
"Service": "config.amazonaws.com"
},
"Effect": "Allow",
"Sid": ""
}
]
}
firehose-role
apiVersion: iam.aws.upbound.io/v1beta1
kind: Role
metadata:
labels:
testing.upbound.io/example-name: firehose_role
name: firehose-role
spec:
forProvider:
assumeRolePolicy: |
{
"Version": "2012-10-17",
"Statement": [
{
"Action": "sts:AssumeRole",
"Principal": {
"Service": "firehose.amazonaws.com"
},
"Effect": "Allow",
"Sid": ""
}
]
}
r
apiVersion: iam.aws.upbound.io/v1beta1
kind: Role
metadata:
annotations:
meta.upbound.io/example-id: configservice/v1beta1/configurationrecorder
labels:
testing.upbound.io/example-name: r
name: r
spec:
forProvider:
assumeRolePolicy: |
{
"Version": "2012-10-17",
"Statement": [
{
"Action": "sts:AssumeRole",
"Principal": {
"Service": "config.amazonaws.com"
},
"Effect": "Allow",
"Sid": ""
}
]
}
test-role
apiVersion: iam.aws.upbound.io/v1beta1
kind: Role
metadata:
annotations:
meta.upbound.io/example-id: configservice/v1beta1/deliverychannel
labels:
testing.upbound.io/example-name: r
name: test-role
spec:
forProvider:
assumeRolePolicy: |
{
"Version": "2012-10-17",
"Statement": [
{
"Action": "sts:AssumeRole",
"Principal": {
"Service": "config.amazonaws.com"
},
"Effect": "Allow",
"Sid": ""
}
]
}
metric-stream-to-firehose
apiVersion: iam.aws.upbound.io/v1beta1
kind: Role
metadata:
annotations:
meta.upbound.io/example-id: cloudwatch/v1beta1/metricstream
labels:
testing.upbound.io/example-name: metric_stream_to_firehose
name: metric-stream-to-firehose
spec:
forProvider:
assumeRolePolicy: |
{
"Version": "2012-10-17",
"Statement": [
{
"Action": "sts:AssumeRole",
"Principal": {
"Service": "streams.metrics.cloudwatch.amazonaws.com"
},
"Effect": "Allow",
"Sid": ""
}
]
}
test-invocation-role-${Rand.RFC1123Subdomain}
apiVersion: iam.aws.upbound.io/v1beta1
kind: Role
metadata:
labels:
testing.upbound.io/example-name: restapi
name: test-invocation-role-${Rand.RFC1123Subdomain}
spec:
forProvider:
assumeRolePolicy: |
{
"Version": "2012-10-17",
"Statement": [
{
"Action": "sts:AssumeRole",
"Principal": {
"Service": "apigateway.amazonaws.com"
},
"Effect": "Allow",
"Sid": ""
}
]
}
path: /
© 2022 Upbound, Inc.
Discover the building blocksfor your internal cloud platform.