An 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
An RolePolicyAttachmentSpec defines the desired state of an RolePolicyAttachment.
RolePolicyAttachmentParameters define the desired state of an AWS IAM Role policy attachment.
PolicyARNRef references an Policy to retrieve its Policy ARN.
Policies for referencing.
PolicyARNSelector selects a reference to an Policy to retrieve its Policy ARN
Policies for selection.
RoleNameRef references an Role to retrieve its Name
Policies for referencing.
RoleNameSelector selects a reference to an Role to retrieve its Name
Policies for selection.
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.
An 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
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
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
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