Code Monkey home page Code Monkey logo

hello-app-runner's Issues

Sample command appears to be invalid

Tried with V2 of the CLI and it seems to not know about apprunner:

# aws --version
aws-cli/2.2.5

#  aws apprunner create-service --cli-input-yaml file://hello-app-runner.yaml
aws: error: argument command: Invalid choice, valid choices are:

So reverted to V1

# aws --version       
aws-cli/1.19.75

Running the sample command yields:

# aws apprunner create-service --cli-input-yaml file://hello-app-runner.yaml                               

aws: error: argument --service-name is required

Looking at the help:

# aws apprunner create-service help

SYNOPSIS
            create-service
          --service-name <value>
          --source-configuration <value>
          [--instance-configuration <value>]
          [--tags <value>]
          [--encryption-configuration <value>]
          [--health-check-configuration <value>]
          [--auto-scaling-configuration-arn <value>]
          [--cli-input-json <value>]
          [--generate-cli-skeleton <value>]

Suggests two flags are required and --cli-input-yaml isn't detailed.

Generated the json equivalent:

# aws apprunner create-service --generate-cli-skeleton > hello-app-runner.json

And populated the detail from the yaml:

{
    "ServiceName": "hello-app-runner", 
    "SourceConfiguration": {
        "ImageRepository": {
            "ImageIdentifier": "public.ecr.aws/aws-containers/hello-app-runner:latest", 
            "ImageConfiguration": {
                "Port": "8000"
            }, 
            "ImageRepositoryType": "ECR_PUBLIC"
        }, 
        "AutoDeploymentsEnabled": false 
  }
}

Then ran:

# aws apprunner create-service --service-name hello-app-runner --cli-input-json file://hello-app-runner.json

This resulted in a create service operation commencing. A short while later:

image

Doesn't work

Screen Shot 2021-05-19 at 5 06 14 PM

I just cloned this repo and tried to deploy it to App Runner via the instructions in the docs. Please advise.

boto3 NoCredentialsError() and How to use print to log (Python)

Hi, I encountered some issues and need some help

  1. I am using boto3 to access s3. I added permission to access s3 to the app runner role but when I got NoCredentialsError. Do I have to hardcode my credentials?

Screen Shot 2021-09-17 at 7 13 11 PM

  1. my python print statements in the flask app don't seem to be passed to the stdout. Do I have to use logging instead?

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.