Closed GABAnich closed 3 years ago
samconfig.toml
version = 0.1
[default]
[default.deploy]
[default.deploy.parameters]
stack_name = "locash"
s3_bucket = "aws-sam-cli-managed-default-samclisourcebucket-1h8e2lfoc21uu"
s3_prefix = "locash"
region = "us-east-1"
confirm_changeset = false
capabilities = "CAPABILITY_IAM"
I added
- uses: actions/checkout@v2
### before
- uses: TractorZoom/sam-cli-action@master
And problem disappears
@GABAnich can you explain where you added it? I have it in the beginning of the steps function, but I get the same problem
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2
# Prepare environment
- name: Environment setup
uses: actions/setup-node@v2
with:
node-version: '14.x'
- run: npm --prefix ./oneid ci
- name: Run tests
run: npm --prefix ./oneid run test -- --coverage
- name: SAM build
uses: TractorZoom/sam-cli-action@master
with:
sam_command: "build"
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
AWS_DEFAULT_REGION: ${{ secrets.AWS_DEFAULT_REGION }}
- name: SAM deploy
uses: TractorZoom/sam-cli-action@master
with:
sam_command: "deploy"
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
AWS_DEFAULT_REGION: ${{ secrets.AWS_DEFAULT_REGION }}
I want to deploy my changes but got the error
stack-name is defined in
samconfig.toml
Would be good, ifsam-cli-action
can take this param from that file