Key is the Schema for the Keys API. Manages a single-Region or multi-Region primary KMS key.
Type
CRD
Group
kms.aws.upbound.io
Version
v1beta1
apiVersion: kms.aws.upbound.io/v1beta1
kind: Key
KeySpec defines the desired state of Key
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.
KeyStatus defines the observed state of Key.
Conditions of the resource.
sample-key
apiVersion: kms.aws.upbound.io/v1beta1
kind: Key
metadata:
labels:
testing.upbound.io/example-name: sample-key
name: sample-key
spec:
forProvider:
deletionWindowInDays: 7
description: Created with Crossplane
region: us-east-1
kmskey
apiVersion: kms.aws.upbound.io/v1beta1
kind: Key
metadata:
labels:
testing.upbound.io/example-name: vault
name: kmskey
spec:
forProvider:
deletionWindowInDays: 10
description: KMS key 1
region: us-west-1
example
apiVersion: kms.aws.upbound.io/v1beta1
kind: Key
metadata:
annotations:
meta.upbound.io/example-id: ec2/v1beta1/ebsdefaultkmskey
labels:
testing.upbound.io/example-name: example
name: example
spec:
forProvider:
deletionWindowInDays: 7
description: Created with Crossplane
region: us-west-1
test
apiVersion: kms.aws.upbound.io/v1beta1
kind: Key
metadata:
labels:
testing.upbound.io/example-name: test
name: test
spec:
forProvider:
deletionWindowInDays: 7
description: Athena KMS Key
region: us-west-1
sample-replicakey
apiVersion: kms.aws.upbound.io/v1beta1
kind: Key
metadata:
name: sample-replicakey
spec:
forProvider:
deletionWindowInDays: 7
description: Created with Crossplane
multiRegion: true
region: us-east-1
default
apiVersion: kms.aws.upbound.io/v1beta1
kind: Key
metadata:
annotations:
upjet.upbound.io/manual-intervention: This resource is a dependency of
ClusterActivityStream, which needs manual intervention.
name: default
spec:
forProvider:
description: AWS KMS Key to encrypt Database Activity Stream
region: us-west-1
example
apiVersion: kms.aws.upbound.io/v1beta1
kind: Key
metadata:
annotations:
upjet.upbound.io/manual-intervention: The dependent resource HostedZoneDNSSEC is not stable and is thus skipped.
labels:
testing.upbound.io/example-name: example
name: example
spec:
forProvider:
customerMasterKeySpec: ECC_NIST_P256
deletionWindowInDays: 7
keyUsage: SIGN_VERIFY
policy: >-
${jsonencode({
Statement = [
{
Action = [
"kms:DescribeKey",
"kms:GetPublicKey",
"kms:Sign",
],
Effect = "Allow"
Principal = {
Service = "dnssec-route53.amazonaws.com"
}
Sid = "Allow Route 53 DNSSEC Service",
Resource = "*"
Condition = {
StringEquals = {
"aws:SourceAccount" = "${data.aws_caller_identity.current.account_id}"
}
ArnLike = {
"aws:SourceArn" = "arn:aws:route53:::hostedzone/*"
}
}
},
{
Action = "kms:CreateGrant",
Effect = "Allow"
Principal = {
Service = "dnssec-route53.amazonaws.com"
}
Sid = "Allow Route 53 DNSSEC Service to CreateGrant",
Resource = "*"
Condition = {
Bool = {
"kms:GrantIsForAWSResource" = "true"
}
}
},
{
Action = "kms:*"
Effect = "Allow"
Principal = {
AWS = "arn:aws:iam::${data.aws_caller_identity.current.account_id}:root"
}
Resource = "*"
Sid = "Enable IAM User Permissions"
},
]
Version = "2012-10-17"
})}
region: us-west-1
glue-example-key
apiVersion: kms.aws.upbound.io/v1beta1
kind: Key
metadata:
labels:
testing.upbound.io/example-name: glue-example-key
name: glue-example-key
spec:
forProvider:
deletionWindowInDays: 7
description: Created with Crossplane
region: us-west-1
sample-key
apiVersion: kms.aws.upbound.io/v1beta1
kind: Key
metadata:
name: sample-key
spec:
forProvider:
deletionWindowInDays: 7
description: Created with Crossplane
region: us-east-1
© 2022 Upbound, Inc.
Discover the building blocksfor your internal cloud platform.