aws-amplify / amplify-hosting

AWS Amplify Hosting provides a Git-based workflow for deploying and hosting fullstack serverless web applications.
https://aws.amazon.com/amplify/hosting/
Apache License 2.0
456 stars 115 forks source link

Has anyone used the aws SDK to create an Amplify Deployment app with CodeCommit? #29

Closed CodySwannGT closed 3 years ago

CodySwannGT commented 5 years ago

Which Category is your question related to? Amplify deploy

What AWS Services are you utilizing? Amplify and CodeCommit

Provide additional details e.g. code snippets

I'm trying to use the JavaScript SDK to create an Amplify Deploy app connected to a CodeCommit repo.

I've tried everything I can think of and it kind of works but each deployment pulls in an empty repo.

When I repeat the same steps via console, it works just fine.

Has anyone created an Amplify app connected to CodeCommit using the cli or sdk or headless in any way?

swaminator commented 5 years ago

Try adding cli_follow_urlparam = false to your AWS CLI configuration file

e.g. in ~/.aws/config

[default]
region = us-east-1
output = json
cli_follow_urlparam = false

https://docs.amazonaws.cn/en_us/cli/latest/userguide/cli-usage-parameters.html From docs: "This behaviour is disabled automatically for parameters that already expect a URI"

CodySwannGT commented 5 years ago

Thanks - I'll give it a shot

swaminator commented 5 years ago

@CodySwannGT did it work?

CodySwannGT commented 5 years ago

We haven't had a new project where I can test this yet. Also, we're using the JS SDK, so I'll to rewrite.

It's weird that this would address the problem as it seems to be coming from the build environment, but as soon as I have a chance to rewrite and something to test on, I'll give it a shot.

On Thu, Aug 8, 2019 at 5:21 PM Nikhil Swaminathan notifications@github.com wrote:

@CodySwannGT https://github.com/CodySwannGT did it work?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/aws-amplify/amplify-console/issues/29?email_source=notifications&email_token=AACHQO4F2NNXE4W32DH5OCTQDSE67A5CNFSM4IIRFZT2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD3457NQ#issuecomment-519692214, or mute the thread https://github.com/notifications/unsubscribe-auth/AACHQO2RDSKNDPMT6RCS2YTQDSE67ANCNFSM4IIRFZTQ .

-- Cody Swann - CEO, Gunner Technology T: 213.915.4083 | cody@gunnertech.com | www.gunnertech.com

http://www.gunnertech.com/ Check out our Live Show every Thursday at 1 pm EST on Facebook https://www.facebook.com/gunnertechnology, YouTube https://www.youtube.com/channel/UCjURDi2kurZOJFK1OY-QRHg and Periscope https://www.periscope.tv/gunnertech.

CONFIDENTIALITY NOTICE: This email message, together with any documents, files and/or email messages attached to it, is intended for the sole use of the individual or entity to whom it is addressed, and may contain information that is legally privileged, confidential and restricted from disclosure. If you are not the intended recipient, or responsible for delivery to that person, you are hereby notified that any dissemination or copying of this communication is STRICTLY PROHIBITED. In such case please notify the sender by reply email and delete this message without reading, printing or saving.

CodySwannGT commented 5 years ago

Gave it a go. No love. Same exact thing. It's really tough to capture what's happening, but again, it looks like Amplify is pulling down an empty repo

VividKnife commented 5 years ago

For using JS SDK or CLI, what's the error message you are getting?

CodySwannGT commented 5 years ago

There is no error message. The amplify build engine finishes 100% fine.... the only problem is, it pulls down literally an empty repository.

VividKnife commented 5 years ago

What's your appId? If you do Amplify.GetApp, will the repository field show correct value?

CodySwannGT commented 5 years ago

Unfortunately, once I fix it, there's no way to replicate it, so I'll have to wait until I create a new amplify project in a new aws account.

I'll report back as soon as I do.

CodySwannGT commented 5 years ago

I know this is probably super useless, but the process is part of our setup commands in the Gunnerfy project.

The relevant file is here

Please excuse the code. We are actively cleaning it up and iterating on it at the same time.

litwicki commented 3 years ago

@CodySwannGT are you still having trouble with this?

github-actions[bot] commented 1 year ago

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.