Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add minimum RAM permission for the doc #84

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
69 changes: 69 additions & 0 deletions docs/builders/alicloud-ecs.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,75 @@ builder.

@include 'packer-plugin-sdk/communicator/SSH-Agent-Auth-not-required.mdx'

### Alicloud RAM permission:

Finally the plugin should gain a set of Alicloud RAM permission to call Alicloud API.

The following policy document provides the minimal set permissions necessary for the Alicloud plugin to work:

```json
{
"Version": "1",
"Statement": [
{
"Effect": "Allow",
"Action": [
"ecs:AttachKeyPair",
"ecs:CreateKeyPair",
"ecs:DeleteKeyPairs",
"ecs:DetachKeyPair",
"ecs:DescribeKeyPairs",
"ecs:DescribeDisks",
"ecs:ImportKeyPair",
"ecs:CreateSecurityGroup",
"ecs:AuthorizeSecurityGroup",
"ecs:AuthorizeSecurityGroupEgress",
"ecs:DescribeSecurityGroups",
"ecs:DeleteSecurityGroup",
"ecs:CopyImage",
"ecs:CancelCopyImage",
"ecs:CreateImage",
"ecs:DescribeImages",
"ecs:DescribeImageFromFamily",
"ecs:DeleteImage",
"ecs:ModifyImageAttribute",
"ecs:DescribeImageSharePermission",
"ecs:ModifyImageSharePermission",
"ecs:DescribeInstances",
"ecs:StartInstance",
"ecs:StopInstance",
"ecs:CreateInstance",
"ecs:DeleteInstance",
"ecs:RunInstances",
"ecs:RebootInstance",
"ecs:RenewInstance",
"ecs:CreateSnapshot",
"ecs:DeleteSnapshot",
"ecs:DescribeSnapshots",
"ecs:TagResources",
"ecs:UntagResources",
"ecs:AllocatePublicIpAddress",
"ecs:AddTags",
"vpc:DescribeVpcs",
"vpc:CreateVpc",
"vpc:DeleteVpc",
"vpc:DescribeVSwitches",
"vpc:CreateVSwitch",
"vpc:DeleteVSwitch",
"vpc:AllocateEipAddress",
"vpc:AssociateEipAddress",
"vpc:UnassociateEipAddress",
"vpc:ReleaseEipAddress",
"vpc:DescribeEipAddresses"
],
"Resource": [
"*"
]
}
]
}
```

# Disk Devices Configuration:

@include 'builder/ecs/AlicloudDiskDevice-not-required.mdx'
Expand Down