@itentialopensource/adapter-aws_cloudformation 0.3.7 → 0.3.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/AUTH.md +17 -6
- package/CHANGELOG.md +8 -0
- package/TAB2.md +17 -6
- package/package.json +1 -1
- package/refs?service=git-upload-pack +0 -0
- package/report/adapterInfo.json +1 -1
package/AUTH.md
CHANGED
|
@@ -41,6 +41,17 @@ The AWS CloudFormation adapter also supports AWS Security Token Service (STS) Au
|
|
|
41
41
|
}
|
|
42
42
|
```
|
|
43
43
|
|
|
44
|
+
The AWS STS Authentication goes to the AWS STS Service endpoint in order to validate that the primary "service" account the adapter has authenticated with has the permission to assume the role. This call is made to sts.amazonaws.com or a regional sts sevice (e.g. sts.us-east-1.amazonaws.com). By default traffic to these endpoints will go out through the Internet. In the case where you would prefer these route through your network, it is possible to change the STS config for the adapter. The proxy field should point to the AWS loadbalancer or a proxy server that forwards to AWS STS. In Itential Cloud, this can be NAT'd to your network. In addition to this, you may need to set the endpoint in order to have the STS SSL certificate validated successfully. By default the adapter will use sts regional servers. If the loadbalancer and proxy are set up for that you should be fine. If however, they point to the global STS service (sts.amazonaws.com) You will need to set the global as the endpoint or the STS certificate will be rejected due to the hosts not matching.
|
|
45
|
+
|
|
46
|
+
```json
|
|
47
|
+
"authentication": {
|
|
48
|
+
"aws_sts": {
|
|
49
|
+
"endpoint": "<sts certificate endpoint>",
|
|
50
|
+
"proxy": "<proxy/loadbalancer ip>",
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
```
|
|
54
|
+
|
|
44
55
|
### AWS IAM Role
|
|
45
56
|
The AWS CloudFormation adapter also supports AWS IAM Role Authentication. For using this authentication, you need to use the calls in the Adapter that have the STSRole suffix on them and provide the role's ARN in the RoleName variable. In addition to passing the IAM Role in the task, it is possible to set an IAM Role in the Service Instance Configuration by using the `aws_iam_role` property in the authentication section and providing the role's ARN.
|
|
46
57
|
|
|
@@ -52,29 +63,29 @@ The AWS CloudFormation adapter also supports AWS IAM Role Authentication. For us
|
|
|
52
63
|
```
|
|
53
64
|
|
|
54
65
|
### AMAZON STEPS FOR IAM ROLE
|
|
55
|
-
Increase number of hops if running IAP inside of docker on
|
|
66
|
+
Increase number of hops if running IAP inside of docker on an AWS instance
|
|
56
67
|
```bash
|
|
57
68
|
aws sso login --profile aws-bota-1
|
|
58
69
|
<export aws keys for CLI access>
|
|
59
70
|
|
|
60
|
-
|
|
71
|
+
Amazon ec2 modify-instance-metadata-options --instance-id i-0e150236026b7c45d --http-put-response-hop-limit 3 --http-endpoint enabled --region us-east-1
|
|
61
72
|
```
|
|
62
73
|
|
|
63
74
|
Create a new role and attach to it policies:
|
|
64
|
-
- go to your
|
|
75
|
+
- go to your Cloudformation instance, select it
|
|
65
76
|
- Actions->Security->Modify IAM Role
|
|
66
77
|
- Click 'Create New IAM Role'
|
|
67
78
|
- Create a role:
|
|
68
79
|
```text
|
|
69
80
|
Trusted entity type: AWS service
|
|
70
|
-
Use Case:
|
|
81
|
+
Use Case: Cloudformation
|
|
71
82
|
```
|
|
72
83
|
|
|
73
|
-
Add
|
|
84
|
+
Add needed Cloudformation policies to the role
|
|
74
85
|
|
|
75
86
|
Save the role
|
|
76
87
|
|
|
77
|
-
Go back to
|
|
88
|
+
Go back to Cloudformation and Actions->Security->Modify IAM Role, associate newly created role with your Cloudformation instance
|
|
78
89
|
|
|
79
90
|
### Troubleshooting
|
|
80
91
|
- Make sure you copied over the correct access key, secret key and session token.
|
package/CHANGELOG.md
CHANGED
package/TAB2.md
CHANGED
|
@@ -52,6 +52,17 @@ The AWS CloudFormation adapter also supports AWS Security Token Service (STS) Au
|
|
|
52
52
|
}
|
|
53
53
|
```
|
|
54
54
|
|
|
55
|
+
The AWS STS Authentication goes to the AWS STS Service endpoint in order to validate that the primary "service" account the adapter has authenticated with has the permission to assume the role. This call is made to sts.amazonaws.com or a regional sts sevice (e.g. sts.us-east-1.amazonaws.com). By default traffic to these endpoints will go out through the Internet. In the case where you would prefer these route through your network, it is possible to change the STS config for the adapter. The proxy field should point to the AWS loadbalancer or a proxy server that forwards to AWS STS. In Itential Cloud, this can be NAT'd to your network. In addition to this, you may need to set the endpoint in order to have the STS SSL certificate validated successfully. By default the adapter will use sts regional servers. If the loadbalancer and proxy are set up for that you should be fine. If however, they point to the global STS service (sts.amazonaws.com) You will need to set the global as the endpoint or the STS certificate will be rejected due to the hosts not matching.
|
|
56
|
+
|
|
57
|
+
```json
|
|
58
|
+
"authentication": {
|
|
59
|
+
"aws_sts": {
|
|
60
|
+
"endpoint": "<sts certificate endpoint>",
|
|
61
|
+
"proxy": "<proxy/loadbalancer ip>",
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
```
|
|
65
|
+
|
|
55
66
|
#### AWS IAM Role
|
|
56
67
|
The AWS CloudFormation adapter also supports AWS IAM Role Authentication. For using this authentication, you need to use the calls in the Adapter that have the STSRole suffix on them and provide the role's ARN in the RoleName variable. In addition to passing the IAM Role in the task, it is possible to set an IAM Role in the Service Instance Configuration by using the `aws_iam_role` property in the authentication section and providing the role's ARN.
|
|
57
68
|
|
|
@@ -63,29 +74,29 @@ The AWS CloudFormation adapter also supports AWS IAM Role Authentication. For us
|
|
|
63
74
|
```
|
|
64
75
|
|
|
65
76
|
#### AMAZON STEPS FOR IAM ROLE
|
|
66
|
-
Increase number of hops if running IAP inside of docker on
|
|
77
|
+
Increase number of hops if running IAP inside of docker on an AWS instance
|
|
67
78
|
```bash
|
|
68
79
|
aws sso login --profile aws-bota-1
|
|
69
80
|
<export aws keys for CLI access>
|
|
70
81
|
|
|
71
|
-
|
|
82
|
+
Amazon ec2 modify-instance-metadata-options --instance-id i-0e150236026b7c45d --http-put-response-hop-limit 3 --http-endpoint enabled --region us-east-1
|
|
72
83
|
```
|
|
73
84
|
|
|
74
85
|
Create a new role and attach to it policies:
|
|
75
|
-
- go to your
|
|
86
|
+
- go to your Cloudformation instance, select it
|
|
76
87
|
- Actions->Security->Modify IAM Role
|
|
77
88
|
- Click 'Create New IAM Role'
|
|
78
89
|
- Create a role:
|
|
79
90
|
```text
|
|
80
91
|
Trusted entity type: AWS service
|
|
81
|
-
Use Case:
|
|
92
|
+
Use Case: Cloudformation
|
|
82
93
|
```
|
|
83
94
|
|
|
84
|
-
Add
|
|
95
|
+
Add needed Cloudformation policies to the role
|
|
85
96
|
|
|
86
97
|
Save the role
|
|
87
98
|
|
|
88
|
-
Go back to
|
|
99
|
+
Go back to Cloudformation and Actions->Security->Modify IAM Role, associate newly created role with your Cloudformation instance
|
|
89
100
|
|
|
90
101
|
#### Troubleshooting
|
|
91
102
|
- Make sure you copied over the correct access key, secret key and session token.
|
package/package.json
CHANGED
|
Binary file
|
package/report/adapterInfo.json
CHANGED