I'm a bit worried about the permission I need to assign to be able to use the archive tier on amazon, is there a way to restrict them to the relevant objects?
Maybe after a the needed IAM / VPC entries have been created.
As it is, the IAM user has too many permissions, at least this is my impression.
Code: Select all
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "VisualEditor0",
"Effect": "Allow",
"Action": [
"ec2:AuthorizeSecurityGroupIngress",
"ec2:DescribeInstances",
"ec2:CreateKeyPair",
"ec2:DescribeVolumesModifications",
"iam:CreateRole",
"s3:CreateBucket",
"ec2:AttachInternetGateway",
"iam:PutRolePolicy",
"ec2:DescribeSnapshots",
"ec2:AssociateRouteTable",
"s3:GetBucketObjectLockConfiguration",
"ec2:DeleteVolume",
"ec2:StartInstances",
"ec2:CreateRoute",
"ec2:CreateInternetGateway",
"ec2:RevokeSecurityGroupEgress",
"s3:PutLifecycleConfiguration",
"ec2:DescribeVolumes",
"ec2:DescribeAccountAttributes",
"s3:DeleteObject",
"ec2:DescribeKeyPairs",
"iam:GetRole",
"ec2:ModifyVolume",
"s3:GetObjectRetention",
"ec2:CreateTags",
"ec2:CreateRouteTable",
"ec2:RunInstances",
"s3:PutObjectLegalHold",
"s3:GetObjectLegalHold",
"ec2:StopInstances",
"ec2:CreateVolume",
"s3:ListMultipartUploadParts",
"ec2:RevokeSecurityGroupIngress",
"s3:PutObject",
"s3:GetObject",
"ec2:CreateSubnet",
"ec2:DescribeSubnets",
"ec2:DeleteKeyPair",
"s3:DeleteObjectVersion",
"s3:ListBucketVersions",
"s3:RestoreObject",
"ec2:CreateVpc",
"ec2:DescribeDhcpOptions",
"s3:ListBucket",
"ec2:DescribeVpcAttribute",
"s3:AbortMultipartUpload",
"ec2:DescribeNetworkInterfaces",
"ec2:DescribeAvailabilityZones",
"iam:DeleteRolePolicy",
"ec2:CreateSecurityGroup",
"ec2:ModifyVpcAttribute",
"ec2:ModifyInstanceAttribute",
"s3:DeleteBucket",
"ec2:AuthorizeSecurityGroupEgress",
"s3:ListBucketMultipartUploads",
"ec2:TerminateInstances",
"ec2:CancelConversionTask",
"s3:GetBucketVersioning",
"ec2:DescribeSecurityGroups",
"ec2:DescribeImages",
"s3:ListAllMyBuckets",
"s3:PutObjectRetention",
"ec2:DescribeVpcs",
"ec2:DeleteSecurityGroup",
"ec2:CancelImportTask",
"s3:GetBucketLocation",
"s3:GetObjectVersion",
"ec2:DescribeConversionTasks",
"ec2:DescribeRouteTables"
],
"Resource": "*"
}
]
}