A RolePolicyAttachment is a managed resource that represents an AWS IAM Role policy attachment.
Type
CRD
Group
iam.aws.crossplane.io
Version
v1beta1
apiVersion: iam.aws.crossplane.io/v1beta1
kind: RolePolicyAttachment
A RolePolicyAttachmentSpec defines the desired state of an RolePolicyAttachment.
RolePolicyAttachmentParameters define the desired state of an AWS IAM Role policy attachment.
PolicyARNRef references a Policy to retrieve its Policy ARN.
Policies for referencing.
PolicyARNSelector selects a reference to a Policy to retrieve its Policy ARN
Policies for selection.
RoleNameRef references a Role to retrieve its Name
Policies for referencing.
RoleNameSelector selects a reference to a Role to retrieve its Name
Policies for selection.
THIS IS A BETA FIELD. It is on by default but can be opted out through a Crossplane feature flag. ManagementPolicies specify the array of actions Crossplane is allowed to take on the managed and external resources. This field is planned to replace the DeletionPolicy field in a future release. Currently, both could be set independently and non-default values would be honored if the feature flag is enabled. If both are custom, the DeletionPolicy field will be ignored. See the design doc for more information: https://github.com/crossplane/crossplane/blob/499895a25d1a1a0ba1604944ef98ac7a1a71f197/design/design-doc-observe-only-resources.md?plain=1#L223 and this one: https://github.com/crossplane/crossplane/blob/444267e84783136daa93568b364a5f01228cacbe/design/one-pager-ignore-changes.md
ProviderConfigReference specifies how the provider that will be used to create, observe, update, and delete this managed resource should be configured.
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.
A RolePolicyAttachmentStatus represents the observed state of an RolePolicyAttachment.
RolePolicyAttachmentExternalStatus keeps the state for the external resource
Conditions of the resource.
sample-s3-replication-policy
apiVersion: iam.aws.crossplane.io/v1beta1
kind: RolePolicyAttachment
metadata:
name: sample-s3-replication-policy
spec:
forProvider:
policyArn: arn:aws:iam::aws:policy/AmazonS3FullAccess
roleNameRef:
name: somerole
providerConfigRef:
name: example
sample-rolepolicyattachment
apiVersion: iam.aws.crossplane.io/v1beta1
kind: RolePolicyAttachment
metadata:
name: sample-rolepolicyattachment
spec:
forProvider:
policyArnRef:
name: somepolicy
roleNameRef:
name: somerole
providerConfigRef:
name: example
glue-rolepolicyattachment
apiVersion: iam.aws.crossplane.io/v1beta1
kind: RolePolicyAttachment
metadata:
name: glue-rolepolicyattachment
spec:
forProvider:
policyArnRef:
name: glue-policy
roleNameRef:
name: glue-role
providerConfigRef:
name: example
spot-fleet-tagging-rolepolicyattachment
apiVersion: iam.aws.crossplane.io/v1beta1
kind: RolePolicyAttachment
metadata:
name: spot-fleet-tagging-rolepolicyattachment
spec:
forProvider:
policyArn: arn:aws:iam::aws:policy/service-role/AmazonEC2SpotFleetTaggingRole
roleNameRef:
name: spot-fleet-tagging-role
providerConfigRef:
name: example
sample-noderolemanagedpolicyattachment1
apiVersion: iam.aws.crossplane.io/v1beta1
kind: RolePolicyAttachment
metadata:
name: sample-noderolemanagedpolicyattachment1
spec:
forProvider:
policyArn: arn:aws:iam::aws:policy/AmazonEKSWorkerNodePolicy
roleNameRef:
name: somenoderole
providerConfigRef:
name: example
ecs-task-execution-rolepolicyattachment
apiVersion: iam.aws.crossplane.io/v1beta1
kind: RolePolicyAttachment
metadata:
name: ecs-task-execution-rolepolicyattachment
spec:
forProvider:
policyArn: arn:aws:iam::aws:policy/service-role/AmazonECSTaskExecutionRolePolicy
roleNameRef:
name: ecs-task-execution-role
providerConfigRef:
name: example
batch-rolepolicyattachment
apiVersion: iam.aws.crossplane.io/v1beta1
kind: RolePolicyAttachment
metadata:
name: batch-rolepolicyattachment
spec:
forProvider:
policyArnRef:
name: batch-policy
roleNameRef:
name: batch-role
providerConfigRef:
name: example
sample-environment-role-airflow-access
apiVersion: iam.aws.crossplane.io/v1beta1
kind: RolePolicyAttachment
metadata:
name: sample-environment-role-airflow-access
spec:
deletionPolicy: Delete
forProvider:
policyArnRef:
name: sample-environment-role-airflow-access
roleNameRef:
name: sample-environment-role
providerConfigRef:
name: example
ecsinstance-role-policyattachment
apiVersion: iam.aws.crossplane.io/v1beta1
kind: RolePolicyAttachment
metadata:
name: ecsinstance-role-policyattachment
spec:
forProvider:
policyArn: arn:aws:iam::aws:policy/service-role/AmazonEC2ContainerServiceforEC2Role
roleNameRef:
name: ecsinstance-role
providerConfigRef:
name: example
sample-noderolemanagedpolicyattachment2
apiVersion: iam.aws.crossplane.io/v1beta1
kind: RolePolicyAttachment
metadata:
name: sample-noderolemanagedpolicyattachment2
spec:
forProvider:
policyArn: arn:aws:iam::aws:policy/AmazonEC2ContainerRegistryReadOnly
roleNameRef:
name: somenoderole
providerConfigRef:
name: example
sample-rolemanagedpolicyattachment
apiVersion: iam.aws.crossplane.io/v1beta1
kind: RolePolicyAttachment
metadata:
name: sample-rolemanagedpolicyattachment
spec:
forProvider:
policyArn: arn:aws:iam::aws:policy/AmazonEKSClusterPolicy
roleNameRef:
name: somerole
providerConfigRef:
name: example
sample-noderolemanagedpolicyattachment3
apiVersion: iam.aws.crossplane.io/v1beta1
kind: RolePolicyAttachment
metadata:
name: sample-noderolemanagedpolicyattachment3
spec:
forProvider:
policyArn: arn:aws:iam::aws:policy/AmazonEKS_CNI_Policy
roleNameRef:
name: somenoderole
providerConfigRef:
name: example
© 2022 Upbound, Inc.
Discover the building blocksfor your internal cloud platform.