Merge pull request #3882 from ijin/iam-version

Align IAM version number to the current version (2012-10-17)
This commit is contained in:
James Nugent 2015-11-12 10:00:27 -06:00
commit d96582e60f
6 changed files with 7 additions and 7 deletions

View File

@ -319,7 +319,7 @@ resource "aws_iam_role" "ecs_service" {
name = "EcsService"
assume_role_policy = <<EOF
{
"Version": "2008-10-17",
"Version": "2012-10-17",
"Statement": [
{
"Action": "sts:AssumeRole",

View File

@ -430,7 +430,7 @@ func testAccCheckAWSS3BucketCors(n string, corsRules []*s3.CORSRule) resource.Te
// within AWS
var randInt = rand.New(rand.NewSource(time.Now().UnixNano())).Int()
var testAccWebsiteEndpoint = fmt.Sprintf("tf-test-bucket-%d.s3-website-us-west-2.amazonaws.com", randInt)
var testAccAWSS3BucketPolicy = fmt.Sprintf(`{ "Version": "2008-10-17", "Statement": [ { "Sid": "", "Effect": "Allow", "Principal": { "AWS": "*" }, "Action": "s3:GetObject", "Resource": "arn:aws:s3:::tf-test-bucket-%d/*" } ] }`, randInt)
var testAccAWSS3BucketPolicy = fmt.Sprintf(`{ "Version": "2012-10-17", "Statement": [ { "Sid": "", "Effect": "Allow", "Principal": { "AWS": "*" }, "Action": "s3:GetObject", "Resource": "arn:aws:s3:::tf-test-bucket-%d/*" } ] }`, randInt)
var testAccAWSS3BucketConfig = fmt.Sprintf(`
resource "aws_s3_bucket" "bucket" {

View File

@ -128,7 +128,7 @@ resource "aws_sns_topic" "test_topic" {
name = "example"
policy = <<EOF
{
"Version": "2008-10-17",
"Version": "2012-10-17",
"Id": "Policy1445931846145",
"Statement": [
{

View File

@ -136,7 +136,7 @@ resource "aws_vpc_endpoint" "second-private-s3" {
route_table_ids = ["${aws_route_table.default.id}"]
policy = <<POLICY
{
"Version": "2008-10-17",
"Version": "2012-10-17",
"Statement": [
{
"Sid":"AllowAll",
@ -176,7 +176,7 @@ resource "aws_vpc_endpoint" "second-private-s3" {
route_table_ids = ["${aws_route_table.default.id}"]
policy = <<POLICY
{
"Version": "2008-10-17",
"Version": "2012-10-17",
"Statement": [
{
"Sid":"AllowAll",

View File

@ -13,7 +13,7 @@ resource "aws_s3_bucket" "prod" {
acl = "private"
policy = <<POLICY
{
"Version": "2008-10-17",
"Version": "2012-10-17",
"Statement": [
{
"Sid": "AllowTest",

View File

@ -23,7 +23,7 @@ resource "aws_iam_role" "role" {
path = "/"
assume_role_policy = <<EOF
{
"Version": "2008-10-17",
"Version": "2012-10-17",
"Statement": [
{
"Action": "sts:AssumeRole",