question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Amplify Publish Silently For Headless Deployments

See original GitHub issue

Allow non-interactive communication using AWS CLI. I want to run the amplify publish command using the AWS CodeBuild And in buildspec.yaml I have defined amplify publish which generates the following results

[Container] 2018/10/17 11:32:17 Running command amplify publish
(node:50) ExperimentalWarning: The fs.promises API is experimental
| Category | Resource name | Operation | Provider plugin |
| -------- | --------------- | --------- | ----------------- |
| Auth | cognito15ca543b | No Change | awscloudformation |
| Hosting | S3AndCloudFront | No Change | awscloudformation |
tput: No value for $TERM and no -T specified
?
 
A
r
e

y
o
u

s
u
r
e

y
o
u

w
a
n
t

t
o

c
o
n
t
i
n
u
e
?
 
(
Y
/
n
)


[Container] 2018/10/17 11:32:19 Phase complete: BUILD Success: true
[Container] 2018/10/17 11:32:19 Phase context status code: Message: 
[Container] 2018/10/17 11:32:19 Entering phase POST_BUILD

Describe the solution you’d like Allow us to run the publish command by accepting all scenarios. E.g

amplify publish -qy

Where q Represent for Non-interactive or Quiet mode. y Means set all answers to Yes by default.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
eelzinatycommented, Apr 23, 2019

That is really cool. Do you support other commands? i.e. amplify add auth or amplify add analytics.

1reaction
dkwl93commented, Aug 20, 2019

My use case is:

? Do you want to generate code for your newly created GraphQL API Yes
? Choose the code generation language target flow
? Enter the file name pattern of graphql queries, mutations and subscriptions src/graphql/**/*.js
? Do you want to generate/update all possible GraphQL operations - queries, mutations and subscriptions No
? Enter the file name for the generated code src/API.js

so YES to code gen but NO to generate all possible query/mutation etc.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Advanced workflows - Headless mode for CI/CD - Amplify Docs
The CLI will upload the contents inside this directory to the S3 hosting buckets in the execution of the amplify publish command.
Read more >
AWS Amplify-CLI Headless & CI/CD - Medium
This article explains how to use AWS Amplify-CLI Headless Mode and GitHub Actions as our CI/CD to deploy a Website or Mobile Application ......
Read more >
Setting Up a Project with CI/CD Using Amplify - Jan Hesters
In this tutorial, you are going to learn how to set up a project with CI/CD. We are going to use the Amplify...
Read more >
Manual deploys - AWS Amplify Hosting
Manual deploys allows you to publish your web app with Amplify Hosting without connecting a Git provider. You can choose to drag and...
Read more >
Deployment - Docusaurus
Deploying to GitHub Pages​. Docusaurus provides an easy way to publish to GitHub Pages, which comes for free with every GitHub repository.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found