Questions tagged [aws-resource-group]
19 questions
9
votes
3 answers
How to limit AWS API Gateway access to specific CloudFront distribution or Route53 subdomain
I have an API Gateway api setup that I want to limit access to. I have a subdomain setup in AWS Route 53 that points to a CloudFront distribution where my app lives. This app makes a POST request to the API.
I have looked into adding a resource…

Jon B
- 2,444
- 2
- 18
- 19
5
votes
2 answers
Only get existing resources with ResourceGroupTaggingAPI
I am using the AWS ResourceGroupTagginApi (the get-resources command, https://docs.aws.amazon.com/cli/latest/reference/resourcegroupstaggingapi/get-resources.html) to list all my resources in my account and check if the tags are setup as I want…

Nathan
- 7,099
- 14
- 61
- 125
3
votes
1 answer
creating AWS resource group using boto3
I would like to create AWS resource group using boto3. In the resource group I would like to add ec2 instances having tags "name":"Jenkins".Below is the syntax suggested in boto3 documentation.
response = client.create_group(
Name='string',
…

mounika
- 75
- 9
2
votes
1 answer
List of AWS instances by TAG value using powershell
We are taging our AWS instances, I will like to retrieve a list of ALL our instances (ELB, S3, EC2, Security Groups) by TAG reference. for instance we consistently TAG our resources with something like this:
{ "Key": "Project",
…

user2690511
- 83
- 7
1
vote
1 answer
how to find IAM role in aws console Resource tag group?
I have create some resoruces and iam roles by terraform, and add tags to them.
I'd like to find all the resource with specifiec tag, but the resoult didn't include the iam role, even I select "All supported resource types". And I find this page…

jolla
- 365
- 1
- 2
- 15
1
vote
0 answers
Boto3 not returning all the resources that are requested
I am trying to import SQS queues based on resource groups and add all the visible messages available among the queues. The problem is boto3 is not returning all the queues sometimes. I know it is the problem with boto3 because I am getting correct…

DC_Valluru
- 83
- 8
1
vote
1 answer
How to list the AWS instance id in Resource group
I am trying to get the EC2 InstanceId in my resource group(hello-rg). Here is my code:
client = boto3.client('resource-groups', region_name='us-east-1', aws_access_key_id="key", aws_secret_access_key="id")
response = client.list_group_resources(
…

Priya
- 173
- 6
- 18
1
vote
1 answer
any script to know all the AWS resources created by certain IAM user
Good day,
Is there any script or any aws cli command to know which IAM user created what resource in AWS. so that we just enter the IAM user name and it shows all the resources created by that particular IAM user.
thanks in advance.

jarral rajput
- 23
- 6
1
vote
1 answer
Cannot use the listGroupResources in AWS SDK
I want to find the RDS instances in my dev resource group, I have the following code:
const params = {
GroupName : "dev",
Filters : [
{
Name : "resource-type",
Values : ["AWS:RDS:DBInstance"]
}
]
}
…

Derrops
- 7,651
- 5
- 30
- 60
1
vote
2 answers
Using jq to filter AWS resources based on their tags
Using the command aws resourcegroupstaggingapi get-resources --profile (profile_name) returns an array of JSON object with the Resource ARNs value and their tags (another array of JSON of objects with tag's key and value.
Here's a anonymized…

CMPSoares
- 4,175
- 3
- 24
- 42
1
vote
2 answers
Create an AWS Resource Group with Terraform
I am currently getting into Terraform and I am trying to structure the different resources that I am deploying by using tags and resource groups.
https://docs.aws.amazon.com/cli/latest/reference/resource-groups/index.html
I can easily add tags with…

Boyko Dimitrov
- 11
- 1
- 2
1
vote
1 answer
How do i list only accessible S3 bucket objects for a user, instead of explicitly asking for certain 'prefix'?
This is how we make, S3 Bucket object listing request.
final ListObjectsV2Request req = new ListObjectsV2Request().withBucketName(bucketName)
Suppose we have attached the inline policy to the user, who is requesting the resource,
{
"Sid":…

Siddartha Jangid
- 13
- 2
0
votes
1 answer
AWS Get Resources' Tags
I am trying to get different resources' (EC2s, DynamoDB tables, etc) certain tags by querying with resource ID or ARN in lambda functions. Is there a way to achieve this? I've created a resource group and I can see all resources with the tags I want…

hugh_R
- 3
- 1
0
votes
0 answers
How to get a reference to resourcegroup members with CDK?
tldr;
Need to import a security group and and a subnet given either a couple tags OR a known resource group.
For a SecurityGroup and a Subnet I've created a resourcegroup given this terraform module definition:
resource "aws_resourcegroups_group"…

diegoaguilar
- 8,179
- 14
- 80
- 129
0
votes
1 answer
Do the underlying resources that get used by AWS SageMaker have to be tagged independently (since tagging is only permitted at the domain level)?
SageMaker has many components that do not show up in the resource tag editor. So the individual components of SageMaker end up showing up as non-allocated costs.
So tags can be placed at the SageMaker domain level, BUT... does this also mean that…

Cybernetic
- 12,628
- 16
- 93
- 132