Cloud Platform
- Cloud Platform
- 所有产品
{ "Version": "2012-10-17", "Statement": [ { "Effect": "Allow", "Action": [ "s3:GetBucketLocation", "s3:GetEncryptionConfiguration", "s3:ListBucket", "s3:PutObject", "s3:GetObjectAcl", "s3:GetObject", "s3:DeleteObject", "s3:PutObjectAcl" ], "Resource": [ "arn:aws:s3:::<cluster-staging-dir1>/*", "arn:aws:s3:::<cluster-logging-dir1>/*" ] } ] }
{ "Version": "2012-10-17", "Statement": [ { "Effect": "Allow", "Principal": { "Service": "ec2.amazonaws.com" }, "Action": "sts:AssumeRole" }, { "Effect": "Allow", "Principal": { "AWS": "arn:aws:iam::{{account-id}}:role/agent_role" }, "Action": "sts:AssumeRole", } ] }
{ "Version": "2012-10-17", "Statement": [ { "Effect": "Allow", "Principal": { "Service": "ec2.amazonaws.com" }, "Action": "sts:AssumeRole" }, { "Effect": "Allow", "Principal": { "AWS": "arn:aws:iam::{{account-id}}:role/agent_role" }, "Action": "sts:AssumeRole", "Condition": { "StringEquals": { "sts:ExternalId": "123" } } } ] }
{ "properties":{ "roleName":"agent_role", "description":"", "assignableScopes":[ "/subscriptions/<subscription ID>/resourceGroups/<storage_resource_group>" ], "permissions":[ { "actions":[ "Microsoft.Storage/storageAccounts/read", "Microsoft.Storage/storageAccounts/write", "Microsoft.Storage/storageAccounts/listKeys/action" ], "notActions":[ ], "dataActions":[ ], "notDataActions":[ ] } ] } }
Google VMを作成するときに、必要なロールが関連付けられているサービスアカウントを指定します。storage.buckets.get storage.objects.create storage.objects.delete storage.objects.get storage.objects.list storage.objects.update