This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"Version": "2012-10-17", | |
"Id": "PutObjectPolicy", | |
"Statement": [ | |
{ | |
"Sid": "DenyIncorrectEncryptionHeader", | |
"Effect": "Deny", | |
"Action": "s3:PutObject", | |
"Resource": "*", | |
"Condition": { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/bash | |
for id in `gcloud projects list --format="value(projectId.scope())"` | |
do | |
echo "Enabling Recommender on project ID: $id" | |
gcloud services enable recommender.googleapis.com --project=$id | |
done |