Policy is the Schema for the Policys API. Provides an IAM policy.
Type
CRD
Group
iam.aws.upbound.io
Version
v1beta1
apiVersion: iam.aws.upbound.io/v1beta1
kind: Policy
PolicySpec defines the desired state of Policy
No description provided.
ProviderConfigReference specifies how the provider that will be used to create, observe, update, and delete this managed resource should be configured.
Policies for referencing.
ProviderReference specifies the provider that will be used to create, observe, update, and delete this managed resource. Deprecated: Please use ProviderConfigReference, i.e. providerConfigRef
Policies for referencing.
PublishConnectionDetailsTo specifies the connection secret config which contains a name, metadata and a reference to secret store config to which any connection details for this managed resource should be written. Connection details frequently include the endpoint, username, and password required to connect to the managed resource.
WriteConnectionSecretToReference specifies the namespace and name of a Secret to which any connection details for this managed resource should be written. Connection details frequently include the endpoint, username, and password required to connect to the managed resource. This field is planned to be replaced in a future release in favor of PublishConnectionDetailsTo. Currently, both could be set independently and connection details would be published to both without affecting each other.
PolicyStatus defines the observed state of Policy.
Conditions of the resource.
sample-user-policy
apiVersion: iam.aws.upbound.io/v1beta1
kind: Policy
metadata:
annotations:
meta.upbound.io/example-id: qldb/v1beta1/stream
labels:
testing.upbound.io/example-name: policy
name: sample-user-policy
spec:
forProvider:
policy: |
{
"Version": "2012-10-17",
"Statement": [
{
"Action": ["qldb:*", "kinesis:*"],
"Effect": "Allow",
"Resource": "*"
}
]
}
test-recorder-policy
apiVersion: iam.aws.upbound.io/v1beta1
kind: Policy
metadata:
annotations:
meta.upbound.io/example-id: configservice/v1beta1/deliverychannel
labels:
testing.upbound.io/example-name: p
name: test-recorder-policy
spec:
forProvider:
policy: |
{
"Version": "2012-10-17",
"Statement": [
{
"Action": [
"s3:*"
],
"Effect": "Allow",
"Resource": [
"arn:aws:s3:::test-channel-bucket",
"arn:aws:s3:::test-channel-bucket/*"
]
}
]
}
sample-user-policy
apiVersion: iam.aws.upbound.io/v1beta1
kind: Policy
metadata:
labels:
testing.upbound.io/example-name: policy
name: sample-user-policy
spec:
forProvider:
policy: |
{
"Version": "2012-10-17",
"Statement": [
{
"Action": ["logs:*", "kinesis:*", "route53:*"],
"Effect": "Allow",
"Resource": "*"
}
]
}
amazondmsvpcanagementrole
apiVersion: iam.aws.upbound.io/v1beta1
kind: Policy
metadata:
annotations:
meta.upbound.io/example-id: dms/v1beta1/replicationsubnetgroup
labels:
testing.upbound.io/example-name: policy
name: amazondmsvpcanagementrole
spec:
forProvider:
description: Provides access to manage VPC settings for AWS managed customer
configurations
policy: |
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": [
"ec2:CreateNetworkInterface",
"ec2:DescribeAvailabilityZones",
"ec2:DescribeInternetGateways",
"ec2:DescribeSecurityGroups",
"ec2:DescribeSubnets",
"ec2:DescribeVpcs",
"ec2:DeleteNetworkInterface",
"ec2:ModifyNetworkInterfaceAttribute"
],
"Resource": "*"
}
]
}
test-recorder-policy
apiVersion: iam.aws.upbound.io/v1beta1
kind: Policy
metadata:
annotations:
meta.upbound.io/example-id: configservice/v1beta1/awsconfigurationrecorderstatus
labels:
testing.upbound.io/example-name: p
name: test-recorder-policy
spec:
forProvider:
policy: |
{
"Version": "2012-10-17",
"Statement": [
{
"Action": [
"s3:*"
],
"Effect": "Allow",
"Resource": [
"arn:aws:s3:::test-channel-bucket",
"arn:aws:s3:::test-channel-bucket/*"
]
}
]
}
sample-user-policy
apiVersion: iam.aws.upbound.io/v1beta1
kind: Policy
metadata:
labels:
testing.upbound.io/example-name: role
name: sample-user-policy
spec:
forProvider:
policy: |
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "VisualEditor0",
"Effect": "Allow",
"Action": "elastic-inference:Connect",
"Resource": "*"
}
]
}
user-policy
apiVersion: iam.aws.upbound.io/v1beta1
kind: Policy
metadata:
labels:
testing.upbound.io/example-name: user
name: user-policy
spec:
forProvider:
name: user-policy-${Rand.RFC1123Subdomain}
policy: |
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "VisualEditor0",
"Effect": "Allow",
"Action": "elastic-inference:Connect",
"Resource": "*"
}
]
}
sample-user-policy
apiVersion: iam.aws.upbound.io/v1beta1
kind: Policy
metadata:
name: sample-user-policy
spec:
forProvider:
policy: |
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "VisualEditor0",
"Effect": "Allow",
"Action": "elastic-inference:Connect",
"Resource": "*"
}
]
}
sample-s3-policy
apiVersion: iam.aws.upbound.io/v1beta1
kind: Policy
metadata:
annotations:
upjet.upbound.io/manual-intervention: This resource is a dependency of
ClusterRoleAssociation, which needs manual intervention.
name: sample-s3-policy
spec:
forProvider:
name: sample-s3-policy
policy: |
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": [
"s3:*",
"s3-object-lambda:*"
],
"Resource": "*"
}
]
}
example
apiVersion: iam.aws.upbound.io/v1beta1
kind: Policy
metadata:
annotations:
meta.upbound.io/example-id: redshift/v1beta1/scheduledaction
labels:
testing.upbound.io/example-name: example
name: example
spec:
forProvider:
policy: |
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "VisualEditor0",
"Effect": "Allow",
"Action": [
"redshift:PauseCluster",
"redshift:ResumeCluster",
"redshift:ResizeCluster"
],
"Resource": "*"
}
]
}
test-recorder-policy
apiVersion: iam.aws.upbound.io/v1beta1
kind: Policy
metadata:
annotations:
meta.upbound.io/example-id: cur/v1beta1/reportdefinition
labels:
testing.upbound.io/example-name: p
name: test-recorder-policy
spec:
forProvider:
policy: >
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": [
"s3:GetBucketAcl",
"s3:GetBucketPolicy"
],
"Resource":"arn:aws:s3:::test-definition-bucket-*",
"Condition": {
"StringEquals": {
"aws:SourceArn": "arn:aws:cur:us-east-1:${data.aws_account_id}:definition/*",
"aws:SourceAccount": "${data.aws_account_id}"
}
}
},
{
"Sid": "Stmt1335892526596",
"Effect": "Allow",
"Action": "s3:PutObject",
"Resource": "arn:aws:s3:::test-definition-bucket-*/*",
"Condition": {
"StringEquals": {
"aws:SourceArn": "arn:aws:cur:us-east-1:${data.aws_account_id}:definition/*",
"aws:SourceAccount": "${data.aws_account_id}"
}
}
},
{
"Action": [
"s3:*"
],
"Effect": "Allow",
"Resource": [
"arn:aws:s3:::test-definition-bucket-*",
"arn:aws:s3:::test-definition-bucket-*/*"
]
}
]
}
sample-ssm-policy
apiVersion: iam.aws.upbound.io/v1beta1
kind: Policy
metadata:
annotations:
meta.upbound.io/example-id: ssm/v1beta1/activation
labels:
testing.upbound.io/example-name: example
name: sample-ssm-policy
spec:
forProvider:
policy: |
{
"Version": "2012-10-17",
"Statement" : [
{
"Effect" : "Allow",
"Action" : [
"ssm:DeleteDocument"
],
"Resource" : [
"arn:aws:ssm:us-west-1:153891904029:document/*"
]
}
]
}
sample-user-policy
apiVersion: iam.aws.upbound.io/v1beta1
kind: Policy
metadata:
labels:
testing.upbound.io/example-name: policy
name: sample-user-policy
spec:
forProvider:
policy: |
{
"Version": "2012-10-17",
"Statement": [
{
"Action": ["logs:*", "kinesis:*"],
"Effect": "Allow",
"Resource": "*"
}
]
}
example
apiVersion: iam.aws.upbound.io/v1beta1
kind: Policy
metadata:
annotations:
meta.upbound.io/example-id: budgets/v1beta1/budgetaction
labels:
testing.upbound.io/example-name: example
name: example
spec:
forProvider:
description: My example policy
policy: |
{
"Version": "2012-10-17",
"Statement": [
{
"Action": [
"ec2:Describe*"
],
"Effect": "Allow",
"Resource": "*"
}
]
}
glue-policy
apiVersion: iam.aws.upbound.io/v1beta1
kind: Policy
metadata:
labels:
testing.upbound.io/example-name: glue-policy
name: glue-policy
spec:
forProvider:
description: glue-policy
policy: |
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": [
"glue:*",
"s3:GetBucketLocation",
"s3:ListBucket",
"s3:ListAllMyBuckets",
"s3:GetBucketAcl",
"ec2:DescribeVpcEndpoints",
"ec2:DescribeRouteTables",
"ec2:CreateNetworkInterface",
"ec2:DeleteNetworkInterface",
"ec2:DescribeNetworkInterfaces",
"ec2:DescribeSecurityGroups",
"ec2:DescribeSubnets",
"ec2:DescribeVpcAttribute",
"iam:ListRolePolicies",
"iam:GetRole",
"iam:GetRolePolicy",
"cloudwatch:PutMetricData"
],
"Resource": [
"*"
]
},
{
"Effect": "Allow",
"Action": [
"s3:CreateBucket",
"s3:PutBucketPublicAccessBlock"
],
"Resource": [
"arn:aws:s3:::aws-glue-*"
]
},
{
"Effect": "Allow",
"Action": [
"s3:GetObject",
"s3:PutObject",
"s3:DeleteObject"
],
"Resource": [
"arn:aws:s3:::aws-glue-*/*",
"arn:aws:s3:::*/*aws-glue-*/*"
]
},
{
"Effect": "Allow",
"Action": [
"s3:GetObject"
],
"Resource": [
"arn:aws:s3:::crawler-public*",
"arn:aws:s3:::aws-glue-*"
]
},
{
"Effect": "Allow",
"Action": [
"logs:CreateLogGroup",
"logs:CreateLogStream",
"logs:PutLogEvents",
"logs:AssociateKmsKey"
],
"Resource": [
"arn:aws:logs:*:*:/aws-glue/*"
]
},
{
"Effect": "Allow",
"Action": [
"ec2:CreateTags",
"ec2:DeleteTags"
],
"Condition": {
"ForAllValues:StringEquals": {
"aws:TagKeys": [
"aws-glue-service-resource"
]
}
},
"Resource": [
"arn:aws:ec2:*:*:network-interface/*",
"arn:aws:ec2:*:*:security-group/*",
"arn:aws:ec2:*:*:instance/*"
]
}
]
}
© 2022 Upbound, Inc.
Discover the building blocksfor your internal cloud platform.