Skip to content

Can't assign tags to stack #144

@kalhokail

Description

@kalhokail

I have been trying to include tags for my CF stack template but I'm failing. No error is coming at all. I just doesn't appear at all. I followed the format in action.yml file:

tags:
description: 'Key-value pairs to associate with this stack. This input should be JSON-formatted, for example [ { "Key": "string", "Value": "string" } ]'
required: false

But it's not doing any affect at all. Here is my yaml file

  • name: Deploy API Gateway Setup
    if: github.ref == 'refs/heads/main'
    id: My-api-gateway
    uses: aws-actions/aws-cloudformation-github-deploy@v1
    with:
    name: My-Infra-API-GW
    template: Infrastructure/eu-west-1/API-GW/api-gw-setup.yaml
    role-arn: arn:aws:iam::1234567890:role/GitHub-Role
    no-fail-on-empty-changeset: "1"
    tags: >
    '[
    {
    "Key": "Product",
    "Value": "Infrastructure"
    },
    {
    "Key": "Environment",
    "Value": "AWS"
    },
    {
    "Key": "CreatedBy",
    "Value": "GitHubActions"
    }
    ]'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions