File tree Expand file tree Collapse file tree 3 files changed +16
-92
lines changed
server-admin-4.3/modules/installation/pages
server-admin-4.7/modules/ROOT/partials/installation
server-admin-4.8/modules/ROOT/partials/installation Expand file tree Collapse file tree 3 files changed +16
-92
lines changed Original file line number Diff line number Diff line change @@ -683,21 +683,6 @@ aws iam create-policy --policy-name circleci-vm --policy-document file://<POLICY
683683 }
684684 }
685685 },
686- {
687- "Action": [
688- "ec2:CreateTags",
689- "ec2:StartInstances",
690- "ec2:StopInstances",
691- "ec2:TerminateInstances"
692- ],
693- "Effect": "Allow",
694- "Resource": "arn:aws:ec2:*:*:*/*",
695- "Condition": {
696- "StringEquals": {
697- "ec2:ResourceTag/ManagedBy": "circleci-machine-provisioner"
698- }
699- }
700- },
701686 {
702687 "Action": [
703688 "ec2:RunInstances",
@@ -709,7 +694,8 @@ aws iam create-policy --policy-name circleci-vm --policy-document file://<POLICY
709694 "Resource": "arn:aws:ec2:*:*:subnet/*",
710695 "Condition": {
711696 "StringEquals": {
712- "ec2:Vpc": "<VPC_ID>"
697+ "ec2:Vpc": "<VPC_ID>",
698+ "ec2:ResourceTag/ManagedBy": "circleci-machine-provisioner"
713699 }
714700 }
715701 }
@@ -815,21 +801,6 @@ Create a `policy.json` file with the following content. You should fill in the I
815801 }
816802 }
817803 },
818- {
819- "Action": [
820- "ec2:CreateTags",
821- "ec2:StartInstances",
822- "ec2:StopInstances",
823- "ec2:TerminateInstances"
824- ],
825- "Effect": "Allow",
826- "Resource": "arn:aws:ec2:*:*:*/*",
827- "Condition": {
828- "StringEquals": {
829- "ec2:ResourceTag/ManagedBy": "circleci-machine-provisioner"
830- }
831- }
832- },
833804 {
834805 "Action": [
835806 "ec2:RunInstances",
@@ -841,7 +812,8 @@ Create a `policy.json` file with the following content. You should fill in the I
841812 "Resource": "arn:aws:ec2:*:*:subnet/*",
842813 "Condition": {
843814 "StringEquals": {
844- "ec2:Vpc": "<VPC_ID>"
815+ "ec2:Vpc": "<VPC_ID>",
816+ "ec2:ResourceTag/ManagedBy": "circleci-machine-provisioner"
845817 }
846818 }
847819 }
Original file line number Diff line number Diff line change @@ -740,21 +740,6 @@ aws iam create-policy --policy-name circleci-vm --policy-document file://<POLICY
740740 }
741741 }
742742 },
743- {
744- "Action": [
745- "ec2:CreateTags",
746- "ec2:StartInstances",
747- "ec2:StopInstances",
748- "ec2:TerminateInstances"
749- ],
750- "Effect": "Allow",
751- "Resource": "arn:aws:ec2:*:*:*/*",
752- "Condition": {
753- "StringEquals": {
754- "ec2:ResourceTag/ManagedBy": "circleci-machine-provisioner"
755- }
756- }
757- },
758743 {
759744 "Action": [
760745 "ec2:RunInstances",
@@ -770,6 +755,9 @@ aws iam create-policy --policy-name circleci-vm --policy-document file://<POLICY
770755 "arn:aws:ec2:*:*:subnet/<SUBNET_ID_1>",
771756 "arn:aws:ec2:*:*:subnet/<SUBNET_ID_2>"
772757 ]
758+ },
759+ "StringEquals": {
760+ "ec2:ResourceTag/ManagedBy": "circleci-machine-provisioner"
773761 }
774762 }
775763 }
@@ -882,21 +870,6 @@ Create a `policy.json` file with the following content. You should fill in the I
882870 }
883871 }
884872 },
885- {
886- "Action": [
887- "ec2:CreateTags",
888- "ec2:StartInstances",
889- "ec2:StopInstances",
890- "ec2:TerminateInstances"
891- ],
892- "Effect": "Allow",
893- "Resource": "arn:aws:ec2:*:*:*/*",
894- "Condition": {
895- "StringEquals": {
896- "ec2:ResourceTag/ManagedBy": "circleci-machine-provisioner"
897- }
898- }
899- },
900873 {
901874 "Action": [
902875 "ec2:RunInstances",
@@ -912,6 +885,9 @@ Create a `policy.json` file with the following content. You should fill in the I
912885 "arn:aws:ec2:*:*:subnet/<SUBNET_ID_1>",
913886 "arn:aws:ec2:*:*:subnet/<SUBNET_ID_2>"
914887 ]
888+ },
889+ "StringEquals": {
890+ "ec2:ResourceTag/ManagedBy": "circleci-machine-provisioner"
915891 }
916892 }
917893 }
Original file line number Diff line number Diff line change @@ -774,21 +774,6 @@ aws iam create-policy --policy-name circleci-vm --policy-document file://<POLICY
774774 }
775775 }
776776 },
777- {
778- "Action": [
779- "ec2:CreateTags",
780- "ec2:StartInstances",
781- "ec2:StopInstances",
782- "ec2:TerminateInstances"
783- ],
784- "Effect": "Allow",
785- "Resource": "arn:aws:ec2:*:*:*/*",
786- "Condition": {
787- "StringEquals": {
788- "ec2:ResourceTag/ManagedBy": "circleci-machine-provisioner"
789- }
790- }
791- },
792777 {
793778 "Action": [
794779 "ec2:RunInstances",
@@ -804,6 +789,9 @@ aws iam create-policy --policy-name circleci-vm --policy-document file://<POLICY
804789 "arn:aws:ec2:*:*:subnet/<SUBNET_ID_1>",
805790 "arn:aws:ec2:*:*:subnet/<SUBNET_ID_2>"
806791 ]
792+ },
793+ "StringEquals": {
794+ "ec2:ResourceTag/ManagedBy": "circleci-machine-provisioner"
807795 }
808796 }
809797 }
@@ -916,21 +904,6 @@ Create a `policy.json` file with the following content. You should fill in the I
916904 }
917905 }
918906 },
919- {
920- "Action": [
921- "ec2:CreateTags",
922- "ec2:StartInstances",
923- "ec2:StopInstances",
924- "ec2:TerminateInstances"
925- ],
926- "Effect": "Allow",
927- "Resource": "arn:aws:ec2:*:*:*/*",
928- "Condition": {
929- "StringEquals": {
930- "ec2:ResourceTag/ManagedBy": "circleci-machine-provisioner"
931- }
932- }
933- },
934907 {
935908 "Action": [
936909 "ec2:RunInstances",
@@ -946,6 +919,9 @@ Create a `policy.json` file with the following content. You should fill in the I
946919 "arn:aws:ec2:*:*:subnet/<SUBNET_ID_1>",
947920 "arn:aws:ec2:*:*:subnet/<SUBNET_ID_2>"
948921 ]
922+ },
923+ "StringEquals": {
924+ "ec2:ResourceTag/ManagedBy": "circleci-machine-provisioner"
949925 }
950926 }
951927 }
You can’t perform that action at this time.
0 commit comments