Giter Site home page Giter Site logo

Comments (4)

alanedwardes avatar alanedwardes commented on July 24, 2024

Hi,

When I try this, CloudFormation complains about the code bucket being in a different region:

image

Error occurred while GetObject. S3 Error Code: AuthorizationHeaderMalformed. S3 Error Message: The authorization header is malformed; the region 'us-east-1' is wrong; expecting 'eu-west-1' (Service: AWSLambda; Status Code: 400; Error Code: InvalidParameterValueException; Request ID: 53249a0d-c2a5-11e8-8673-e93cc8a11d3f)

Did you change this and see it working?

Cheers

from estranged.lfs.

jdannenbring avatar jdannenbring commented on July 24, 2024

I hadn't tried it till now. Looks like the issue is my lambda function on us-west cannot access your 'ae-infrastructure-eu-west-1' bucket (even though its publicly downloadable).

When I make a bucket and put the git-lfs-lambda.zip there, then the code in the yaml works:
Code: S3Bucket: !Sub 'cf-templates-124hcfrvf3ol2-${AWS::Region}' S3Key: git-lfs-lambda.zip

Where cf-templates-124hcfrvf3ol2 was my bucket name.

from estranged.lfs.

alanedwardes avatar alanedwardes commented on July 24, 2024

No - this is a limitation of AWS Lambda. Since I don't want to maintain a bucket in each region, the script will only support eu-west-1 for now - so hardcoding that region or keeping it as ${AWS::Region} is functionally the same :)

from estranged.lfs.

jdannenbring avatar jdannenbring commented on July 24, 2024

I see, understood. Thanks!

from estranged.lfs.

Related Issues (5)

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.