Search

S3

apiVersion: s3.aws.crossplane.io/v1beta1 kind: Bucket metadata: name: <BucketName> namespace: default spec: deletionPolicy: Delete forProvider: acl: private locationConstraint: ap-northeast-2 providerConfigRef: name: aws-provider
YAML
복사
kubectl apply -f bucket.yaml
Shell
복사
kubectl get bucket
Shell
복사
성공적으로 버킷이 생성된 모습을 볼 수 있다.
기존 버킷을 Import 해오는 방법 (시간 조금 걸림)
apiVersion: s3.aws.crossplane.io/v1beta1 kind: Bucket metadata: name: my-test-bucket-gbsw namespace: default annotations: crossplane.io/external-name: my-test-bucket-gbsw # Bucket Name spec: deletionPolicy: Orphan forProvider: locationConstraint: ap-northeast-2 providerConfigRef: name: aws-provider
YAML
복사
kubectl apply -f bucket-import.yaml
Shell
복사
ARN이 등록되며 성공적으로 버킷이 Import된 모습을 볼 수 있다.