Comments (8)
It depends on how the cfn is structured. If your userdata is using curl to pull file then yes public read is needed.
You can also add a existing private bucket and IAM roles to your cfn.
If the s3bucket
is specified in the config.yml then taskcat will not create a bucket.
global:
owner: [email protected]
project: sample-cloudformation-project <- Must match the root directory of project (usually the name of git repo)
s3bucket: projectx-templates
from taskcat.
I am using existing bucket, I am using IAM profile to run the task cat the this role does not have "s3:PutObjectAcl".
How about this for the existing bucket.
https://github.com/aws-quickstart/taskcat/blob/master/taskcat/stacker.py#L349
s3_client.upload_file(filename, self.get_s3bucket(), upload, ExtraArgs={'ACL': 'public-read'})
My account admin does not want me to grant public-read permissions on any objects in s3
from taskcat.
You can skip the upload by commenting the stage call as a workaround.
https://github.com/aws-quickstart/taskcat/blob/master/taskcat.py#L43
from taskcat.
ok, Thanks,
Can you please make this as command line parameter where we skip upload s3 and just test ?
from taskcat.
Yes good idea, I will add that to the feature roadmap
from taskcat.
Depends on #59
from taskcat.
The permissions issues have been addressed in pull #67, via issue #59. Your feature request for the additional parameter to skip S3 has been moved to #68 .
Edit: Can't close since this issue isn't resolved. Upstream blockers are addressed though.
from taskcat.
Issue Fixed in #72 👍
from taskcat.
Related Issues (20)
- Replace `has_calls` with `assert_has_calls`
- TemplateURL parsing error: maximum recursion depth exceeded while calling a Python object
- Empty .taskcat_overrides.yml file causes ValidationError HOT 1
- SQS: Resource dependencies are not circular
- Can't install taskcat 0.9.36 on redhat 7 HOT 2
- ValueError cannot find suitable AWS partition HOT 2
- Run taskcat tests in sequential order
- Taskcat Does Not Read Credentials From Environmental Variables
- deployment failed with latest v0.9.37
- How to pass random values for certain parameter in taskcat file HOT 1
- TaskCat failing to run on k8s with contained runtime. HOT 2
- ClientError An error occurred (IllegalLocationConstraintException) when calling the ListObjectsV2 operation: The ap-east-1 location constraint is incompatible for the region specific endpoint this request was sent to
- Pyyaml 5.4.1-6.0.0 has broken half the python eco system HOT 8
- Manual Installation of v0.9.39 is installing v0.9.38 HOT 1
- Tel Aviv AWS Region not supported HOT 2
- Taskcat test clean gives a template deleted return while template hasn't fully completed deletion HOT 4
- `taskcat lint` uses all regions defined in `.taskcat.yaml` but doesn't output the region name in case of an error or warning
- Taskcat failing when Fn::ForEach exist in the template
- Cannot blacklist AZ usw1-az2 and apne1-az3
- $[taskcat_secretsmanager_] pseudo parameter does not work
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from taskcat.