@itentialopensource/adapter-aws_cloudformation 0.3.7 → 0.3.9

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 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 EC2 instance
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
- AWS ec2 modify-instance-metadata-options --instance-id i-0e150236026b7c45d --http-put-response-hop-limit 3 --http-endpoint enabled --region us-east-1
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 EC2 instance, select it
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: EC2
81
+ Use Case: Cloudformation
71
82
  ```
72
83
 
73
- Add desired policies to the role.
84
+ Add needed Cloudformation policies to the role
74
85
 
75
86
  Save the role
76
87
 
77
- Go back to your EC2 instance and Actions->Security->Modify IAM Role, associate newly created role with your EC2 instance
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
@@ -1,4 +1,20 @@
1
1
 
2
+ ## 0.3.9 [10-15-2024]
3
+
4
+ * Changes made at 2024.10.14_21:12PM
5
+
6
+ See merge request itentialopensource/adapters/adapter-aws_cloudformation!25
7
+
8
+ ---
9
+
10
+ ## 0.3.8 [09-30-2024]
11
+
12
+ * update auth docs
13
+
14
+ See merge request itentialopensource/adapters/adapter-aws_cloudformation!23
15
+
16
+ ---
17
+
2
18
  ## 0.3.7 [09-12-2024]
3
19
 
4
20
  * add properties for sts
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 EC2 instance
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
- AWS ec2 modify-instance-metadata-options --instance-id i-0e150236026b7c45d --http-put-response-hop-limit 3 --http-endpoint enabled --region us-east-1
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 EC2 instance, select it
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: EC2
92
+ Use Case: Cloudformation
82
93
  ```
83
94
 
84
- Add desired policies to the role.
95
+ Add needed Cloudformation policies to the role
85
96
 
86
97
  Save the role
87
98
 
88
- Go back to your EC2 instance and Actions->Security->Modify IAM Role, associate newly created role with your EC2 instance
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@itentialopensource/adapter-aws_cloudformation",
3
- "version": "0.3.7",
3
+ "version": "0.3.9",
4
4
  "description": "This adapter integrates with system described as: Aws_cloudformation.",
5
5
  "main": "adapter.js",
6
6
  "wizardVersion": "2.44.7",
@@ -54,7 +54,7 @@
54
54
  "author": "Itential",
55
55
  "homepage": "https://gitlab.com/itentialopensource/adapters/adapter-aws_cloudformation#readme",
56
56
  "dependencies": {
57
- "@itentialopensource/adapter-utils": "^5.7.2",
57
+ "@itentialopensource/adapter-utils": "^5.9.4",
58
58
  "acorn": "^8.12.1",
59
59
  "ajv": "^8.17.1",
60
60
  "aws4": "^1.9.0",
Binary file
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "0.3.6",
2
+ "version": "0.3.7",
3
3
  "configLines": 13276,
4
4
  "scriptLines": 1783,
5
5
  "codeLines": 11578,