Skip to content

Resource Groups are no longer working  #2417

Closed

Description

@jake-naughton

It looks like after a change went out to update the Environment tag to ghr:environment that the Resource Group was not updated to match this.

When I navigate to the Resource Group in AWS I cannot see any related infrastructure since the tag query it is using is:
Environment: prefix

If I update this to:
ghr:environment: prefix

It fixes the issue.

Activity

  1. jake-naughton commented on Sep 13, 2022

    @jake-naughton
    ContributorAuthor

    It should be a simple fix, just need to update the resource-group.json from

    {
      "ResourceTypeFilters": ["AWS::AllSupported"],
      "TagFilters": [
        {
          "Key": "Environment",
          "Values": ["${environment}"]
        }
      ]
    }
    

    to

    {
      "ResourceTypeFilters": ["AWS::AllSupported"],
      "TagFilters": [
        {
          "Key": "ghr:environment",
          "Values": ["${environment}"]
        }
      ]
    }
    

    Happy to put up a PR.

  2. npalm commented on Sep 14, 2022

    @npalm
    Member

    Good catch, please feel free to create a PR

  3. npalm commented on Sep 16, 2022

    @npalm
    Member

    We are not setting a predefined tag to all resources. Which means we cannot create a tag based resource group vai the module. Via the provider you can set a tag to all resources. This means we have to remove the resource group from the module at let it to the user to define a resource group in the deployment.

  4. added
    bug
    help wanted
    good first issue
    on Oct 5, 2022
  5. jake-naughton commented on Oct 10, 2022

    @jake-naughton
    ContributorAuthor

    @npalm I have added a PR (#2512) to fix this if you could please review when you get a chance.

  6. npalm commented on Oct 11, 2022

    @npalm
    Member

    I have created a PR #2514 to create resource groups for the examples

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    buggood first issuehelp wantedstale:exempt

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions