GithubHelp home page GithubHelp logo

Comments (8)

tonynv avatar tonynv commented on May 25, 2024

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.

pankajvkulkarni avatar pankajvkulkarni commented on May 25, 2024

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.

tonynv avatar tonynv commented on May 25, 2024

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.

pankajvkulkarni avatar pankajvkulkarni commented on May 25, 2024

ok, Thanks,
Can you please make this as command line parameter where we skip upload s3 and just test ?

from taskcat.

tonynv avatar tonynv commented on May 25, 2024

Yes good idea, I will add that to the feature roadmap

from taskcat.

tonynv avatar tonynv commented on May 25, 2024

Depends on #59

from taskcat.

andrew-glenn avatar andrew-glenn commented on May 25, 2024

@pankajvkulkarni,

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.

tonynv avatar tonynv commented on May 25, 2024

Issue Fixed in #72 👍

from taskcat.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.