Skip to content
This repository has been archived by the owner on Nov 7, 2019. It is now read-only.

Add bucket param to operator config args #194

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ciaranRoche
Copy link

Issue #, if available: #193

Description of changes:
This change adds the bucket param to the operator deployment config. It also makes a minor change to the documentation, removing the optional tag from creating an S3 bucket. As with out the use of an S3 bucket a user encounters a number of errors when creating the cloudformation templates.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@marcindulak
Copy link

marcindulak commented Jun 28, 2019

When providing a custom bucket in the --bucket=test-cluster-aws-service-operator-random-string, and applying a custom template with

kubectl -n aws-service-operator apply -f examples/cloudformationtemplates/dynamodb.yaml

the bucket stays empty and aws-service-operator logs

time="2019-06-28T20:00:12Z" level=error msg="error uploading cloudformation" error="NoSuchBucket: The specified bucket does not exist\n\tstatus code: 404, request id: 84A7357DF705903F, host id: XXX" hostname=aws-service-operator-865978fc59-x2njq

Moreover, changing the bucket name to something else that the default aws-operator and kubectl applying a custom cloudformationtemplate as above, results in aws-service-operator inability to create resources

kubectl -n aws-service-operator apply -f examples/dynamodb.yaml

@MMartyn
Copy link

MMartyn commented Sep 3, 2019

I am trying to follow along, but it isn't clear to me. Should adding a bucket in us-east-1 work at this point?

@marcindulak
Copy link

If I remember well, using a custom bucket is not working.

@MMartyn
Copy link

MMartyn commented Sep 3, 2019

If I remember well, using a custom bucket is not working.

OK, thanks. That is my experience as well.

Looking through the code if I had to guess it is because my bucket is private and it is trying to add these as public-read:
https://github.com/awslabs/aws-service-operator/blob/master/pkg/customizations/cloudformationtemplate/cloudformationtemplate.go#L67

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants