[英]Only get existing resources with ResourceGroupTaggingAPI
我正在使用 AWS ResourceGroupTagginApi(get-resources 命令, https://docs.aws.amazon.com/cli/latest/reference/resourcegroupstaggingapi/get-resources.html )列出我賬戶 ...
[英]Only get existing resources with ResourceGroupTaggingAPI
我正在使用 AWS ResourceGroupTagginApi(get-resources 命令, https://docs.aws.amazon.com/cli/latest/reference/resourcegroupstaggingapi/get-resources.html )列出我賬戶 ...
[英]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 有許多組件未顯示在資源標簽編輯器中。 因此,SageMaker 的各個組件最終顯示為未分配成本。 因此標簽可以放置在 SageMaker 域級別,但是......這是否也意味着標簽將傳播到該域內啟動的資源(作業、實例、卷等)? 換句話說,SageMaker 使用的底層資源是否 ...
[英]how to find IAM role in aws console Resource tag group?
我已經通過 terraform 創建了一些資源和 iam 角色,並為它們添加了標簽。 我想找到所有帶有特定標簽的資源,但結果不包括 iam 角色,即使我 select “所有支持的資源類型”。 我找到了這個頁面https://docs.aws.amazon.com/config/latest/de ...
[英]How to get resources from ALL regions using ResourceGroupsTaggingAPI
我正在嘗試使用 boto3 和 ResourceGroupsTaggingAPI 下載所有帶有特定標簽的 ARN。 當我應該獲得超過 80 個 ARN 時,我正在過濾兩個標簽並獲得 8 個不同的 ARN。 **編輯:**我發現這是因為 API 限制。 根據文檔,API 允許您從當前使用的區域獲取標 ...
[英]how to apply Deny policy on "tag:UntagResources" Action in AWS
我有這個政策應該阻止用戶從 AWS 的任何資源中刪除標簽。 但標簽仍在從資源中刪除。 由於我是 AWS 的新手,所以我不知道出了什么問題。 其他權限工作正常。 只是取消標記不起作用。 如何拒絕取消標記資源? 提前致謝。 如何使tag:UntagResources工作? ...
[英]How to list the AWS instance id in Resource group
我正在嘗試在我的資源組 (hello-rg) 中獲取 EC2 InstanceId。 這是我的代碼: 文件“rg.py”,第 21 行,在“實例”中,文件“/root/.local/lib/python3.6/site-packages/botocore/client.py”,第 357 行,在 ...
[英]any script to know all the AWS resources created by certain IAM user
美好的一天,是否有任何腳本或任何 aws cli 命令可以知道哪個 IAM 用戶在 AWS 中創建了什么資源。 這樣我們只需輸入 IAM 用戶名,它就會顯示該特定 IAM 用戶創建的所有資源。 提前致謝。 ...
[英]Cannot use the listGroupResources in AWS SDK
我想在我的dev資源組中找到 RDS 實例,我有以下代碼: const params = { GroupName : "dev", Filters : [ { Name : "resource-type", Values : ["AW ...
[英]Adding tags to multiple SQS queues through a single cli command or a script
我有多個 aws sqs 隊列,有些有標簽,但有些沒有。 現在我想將標簽添加到沒有標簽的標簽上。 我們有 cli 命令:aws sqs tag-queue 為單個隊列添加標簽。 是否可以通過單個 cli 命令將多個標簽添加到多個隊列,或者我必須通過任何腳本編寫它。 ...
[英]Using jq to filter AWS resources based on their tags
使用命令aws resourcegroupstaggingapi get-resources --profile (profile_name)返回一個包含 JSON object 的數組,其中包含 Resource ARNs 值及其標簽(Z0ECD11C1D7A287401D148A2 的另一個 Z ...
[英]how can i create the aws java lambda function from aws cli by ignoring unused resources?
aws lambda create-function --function-name CliTestFun --runtime java8 --region ap-south-1 --role arn:aws:iam::XXXXXXXXXXXXX:role/aws-lambda-basic-ex ...
[英]How to limit AWS API Gateway access to specific CloudFront distribution or Route53 subdomain
我有一個 API 網關 api 設置,我想限制訪問。 我在 AWS Route 53 中有一個子域設置,它指向我的應用程序所在的 CloudFront 分配。 此應用程序向 API 發出 POST 請求。 我已經考慮根據示例“AWS API 白名單”為我的 api 添加資源策略,但我似乎無法獲得正確 ...
[英]creating AWS resource group using boto3
我想使用boto3創建AWS資源組。 在資源組中,我想添加帶有標簽“ name”:“ Jenkins”的ec2實例。下面是boto3文檔中建議的語法。 我閱讀了文檔,但是我不了解我的情況是什么查詢,也找不到在線使用boto3創建資源組的任何示例。 在ResourceQuery字典中, ...
[英]Create an AWS Resource Group with Terraform
我目前正在進入 Terraform,我正在嘗試通過使用標簽和資源組來構建我正在部署的不同資源。 https://docs.aws.amazon.com/cli/latest/reference/resource-groups/index.html 我可以使用 Terraform 輕松添加標簽,我可 ...
[英]How do i list only accessible S3 bucket objects for a user, instead of explicitly asking for certain 'prefix'?
這就是我們提出 S3 Bucket 對象列表請求的方式。 假設我們已將內聯策略附加到請求資源的用戶, 該策略的作用在於,它允許用戶列出所有根級對象,包括授予用戶權限的資源。 這樣做的結果是: 我只想列出php_serialize.rb 。 如果請求用戶不知道前綴,他將被授予權限。 ...
[英]List of AWS instances by TAG value using powershell
我們正在標記我們的AWS實例,我想通過TAG引用檢索所有實例的列表(ELB,S3,EC2,安全組)。 例如,我們始終使用以下代碼標記我們的資源:{“ Key”:“ Project”,“ Value”:“ bananas”}, 我們如何才能獲得包含TAG項目值“香蕉”的所有資源的清單? ...