S3
A managed service that provides secure, durable, and scalable object storage for storing and retrieving any amount of data from anywhere on the web.
Example yaml file:
apiVersion: aws.boundless.software/v1alpha1
kind: S3
metadata:
name: example-bucket
spec:
provider:
region: us-east-1
bucket:
bucketName: example-bucket
encryptionKeyARN: "arn:aws:kms:region:accountid:key/key-id"
locationConstraint: "us-east-1"
acl: "private"
website:
IndexDocument: "index.html"
ErrorDocument: "error.html"
bucketPolicy:
Version: "2012-10-17"
Statement:
- Sid: "PublicReadGetObject"
Effect: "Allow"
Principal:
AWS: "*"
Action:
- "s3:GetObject"
Resource: "arn:aws:s3:::example-bucket/*"
tags:
Environment: "production"
Project: "example"
S3Spec
Name | Type | Description |
---|
provider | AwsProviderSpec | Provider specifies the AWS provider settings |
bucket | S3BucketSpec | Bucket specifies the S3 bucket configuration |
S3BucketSpec
Name | Type | Description |
---|
bucketName* | string | Name of the S3 bucket |
encryptionKeyARN | string | Optional ARN of the encryption key |
bucketPolicy | S3BucketPolicy | Optional bucket policy configuration |
website | S3BucketWebsite | Optional website configuration for the bucket |
locationConstraint | string | Optional location constraint |
acl | string | Optional access control list |
tags | map[string]string | Optional key-value pair tags |
S3BucketPolicy
Name | Type | Description |
---|
Version | string | Version of the policy |
Statement | []S3BucketPolicyAction | List of policy actions |
S3BucketPolicyAction
Name | Type | Description |
---|
Sid | string | Statement ID |
Effect | string | Effect (Allow/Deny) |
Principal | map[string]string | The principal the policy applies to |
Action | []string | The action to take |
Resource | string | The resource to apply the action to |
S3BucketWebsite
Name | Type | Description |
---|
IndexDocument | string | The index document for the website |
ErrorDocument | string | The error document for the website |
Status
S3Status
Name | Type | Description |
---|
conditions | []metav1.Condition | List of conditions observed |
bucket | S3BucketStatus | Observed state of the S3 bucket |
S3BucketStatus
Name | Type | Description |
---|
conditions | []metav1.Condition | List of conditions observed |
arn | string | The ARN of the S3 bucket |
name | string | The name of the bucket |
encryptionKeyARN | string | The ARN of the encryption key |
policy | S3BucketPolicy | The policy applied to the bucket |
website | S3BucketWebsite | The website configuration of the bucket |