Policy is the Schema for the Policys API. Attaches a resource based policy to an AWS Certificate Manager Private Certificate Authority (ACM PCA)
Type
CRD
Group
acmpca.aws.upbound.io
Version
v1beta1
apiVersion: acmpca.aws.upbound.io/v1beta1
kind: Policy
PolicySpec defines the desired state of Policy
No description provided.
Reference to a CertificateAuthority in acmpca to populate resourceArn.
Policies for referencing.
Selector for a CertificateAuthority in acmpca to populate resourceArn.
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.
PolicyStatus defines the observed state of Policy.
No description provided.
Conditions of the resource.
example
apiVersion: acmpca.aws.upbound.io/v1beta1
kind: Policy
metadata:
annotations:
meta.upbound.io/example-id: acmpca/v1beta1/policy
upjet.upbound.io/manual-intervention: The resource requires actual account_id
and aws_acmpca_certificate_authority.arn data.
labels:
testing.upbound.io/example-name: example
name: example
spec:
forProvider:
policy: >
{
"Version":"2012-10-17",
"Statement":[
{
"Sid":"1",
"Effect":"Allow",
"Principal":{
"AWS":"${data.aws_caller_identity.current.account_id}"
},
"Action":[
"acm-pca:DescribeCertificateAuthority",
"acm-pca:GetCertificate",
"acm-pca:GetCertificateAuthorityCertificate",
"acm-pca:ListPermissions",
"acm-pca:ListTags"
],
"Resource":"${aws_acmpca_certificate_authority.example.arn}"
},
{
"Sid":"1",
"Effect":"Allow",
"Principal":{
"AWS":"${data.aws_caller_identity.current.account_id}"
},
"Action":[
"acm-pca:IssueCertificate"
],
"Resource":"${aws_acmpca_certificate_authority.example.arn}",
"Condition":{
"StringEquals":{
"acm-pca:TemplateArn":"arn:aws:acm-pca:::template/EndEntityCertificate/V1"
}
}
}
]
}
region: us-west-1
resourceArnSelector:
matchLabels:
testing.upbound.io/example-name: example
© 2022 Upbound, Inc.
Discover the building blocksfor your internal cloud platform.