BucketPolicy is the Schema for the BucketPolicys API. Attaches a policy to an S3 bucket resource.
Type
CRD
Group
s3.aws.upbound.io
Version
v1beta1
apiVersion: s3.aws.upbound.io/v1beta1
kind: BucketPolicy
BucketPolicySpec defines the desired state of BucketPolicy
No description provided.
Reference to a Bucket in s3 to populate bucket.
Policies for referencing.
Selector for a Bucket in s3 to populate bucket.
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.
BucketPolicyStatus defines the observed state of BucketPolicy.
Conditions of the resource.
example
apiVersion: s3.aws.upbound.io/v1beta1
kind: BucketPolicy
metadata:
annotations:
meta.upbound.io/example-id: s3/v1beta1/bucketpolicy
upjet.upbound.io/manual-intervention: The bucket ARN in policy should be changed manually.
labels:
testing.upbound.io/example-name: example
name: example
spec:
forProvider:
bucketSelector:
matchLabels:
testing.upbound.io/example-name: s3
policy: >
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "VisualEditor0",
"Effect": "Allow",
"Principal": "*",
"Action": ["s3:GetObject", "s3:ListBucket"],
"Resource": [ "arn:aws:s3:::<bucket name>", "arn:aws:s3:::<bucket name>/*"]
}
]
}
region: us-west-1
© 2022 Upbound, Inc.
Discover the building blocksfor your internal cloud platform.