AWS Resource Groups Group

This page shows how to write Terraform and CloudFormation for Resource Groups Group and write them securely.

aws_resourcegroups_group (Terraform)

The Group in Resource Groups can be configured in Terraform with the resource name aws_resourcegroups_group. The following sections describe 5 examples of how to use the resource and its parameters.

Example Usage from GitHub

main.tf#L6
resource "aws_resourcegroups_group" "test_servers" {
  name = "test_servers"

  resource_query {
    query = <<JSON
{
resourcegroup.tf#L1
resource "aws_resourcegroups_group" "resg-devl" {
    name = "infra-devl"
    description = "Devl resources build by infra."

    resource_query {
    query = <<JSON
main.tf#L6
resource "aws_resourcegroups_group" "terra-associate" {
  name = "test-group"

  resource_query {
    query = <<JSON
{
resource_group.tf#L1
resource "aws_resourcegroups_group" "group" {
  name = "alexa-skills"

  resource_query {
    query = <<JSON
{
resource_group.tf#L1
resource "aws_resourcegroups_group" "resgrp-MODOS-AWS" {
  name = "resgrp-MODOS-AWS"

  resource_query {
    query = <<JSON
{

Review your Terraform file for AWS best practices

Shisho Cloud, our free checker to make sure your Terraform configuration follows best practices, is available (beta).

Parameters

Explanation in Terraform Registry

Provides a Resource Group.

AWS::ResourceGroups::Group (CloudFormation)

The Group in ResourceGroups can be configured in CloudFormation with the resource name AWS::ResourceGroups::Group. The following sections describe how to use the resource and its parameters.

Example Usage from GitHub

An example could not be found in GitHub.

Parameters

Explanation in CloudFormation Registry

Creates a resource group with the specified name and description. You can optionally include either a resource query or a service configuration. For more information about constructing a resource query, see Build queries and groups in AWS Resource Groups in the AWS Resource Groups User Guide. For more information about service-linked groups and service configurations, see Service configurations for Resource Groups. Minimum permissions To run this command, you must have the following permissions:+ resource-groups:CreateGroup

Frequently asked questions

What is AWS Resource Groups Group?

AWS Resource Groups Group is a resource for Resource Groups of Amazon Web Service. Settings can be wrote in Terraform and CloudFormation.

Where can I find the example code for the AWS Resource Groups Group?

For Terraform, the csa-bconnors/ssm-tf-demo, donatillo/infra and shreedhargowda/tfcloud source code examples are useful. See the Terraform Example section for further details.