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
resource "aws_resourcegroups_group" "test_servers" {
name = "test_servers"
resource_query {
query = <<JSON
{
resource "aws_resourcegroups_group" "resg-devl" {
name = "infra-devl"
description = "Devl resources build by infra."
resource_query {
query = <<JSON
resource "aws_resourcegroups_group" "terra-associate" {
name = "test-group"
resource_query {
query = <<JSON
{
resource "aws_resourcegroups_group" "group" {
name = "alexa-skills"
resource_query {
query = <<JSON
{
resource "aws_resourcegroups_group" "resgrp-MODOS-AWS" {
name = "resgrp-MODOS-AWS"
resource_query {
query = <<JSON
{
Parameters
-
arn
optional computed - string -
description
optional - string -
id
optional computed - string -
name
required - string -
tags
optional - map from string to string -
resource_query
list block
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
-
Name
required - String -
Description
optional - String -
ResourceQuery
optional - ResourceQuery -
Tags
optional - List of Tag -
Configuration
optional - List of ConfigurationItem -
Resources
optional - List
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.