Skip to content

Commit 143b084

Browse files
committed
aws update
1 parent be0bb5f commit 143b084

File tree

945 files changed

+60646
-63920
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

945 files changed

+60646
-63920
lines changed

docs/aws-docs/providers/aws/accessanalyzer/analyzers/index.md

Lines changed: 54 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -74,72 +74,33 @@ WHERE region = 'us-east-1';
7474

7575
## `INSERT` Example
7676

77+
Use the following StackQL query and manifest file to create a new <code>analyzer</code> resource, using <a ref="https://pypi.org/project/stack-deploy/" target="_blank"><code><b>stack-deploy</b></code></a>.
78+
7779
<Tabs
7880
defaultValue="required"
7981
values={[
8082
{ label: 'Required Properties', value: 'required', },
8183
{ label: 'All Properties', value: 'all', },
84+
{ label: 'Manifest', value: 'manifest', },
8285
]
8386
}>
8487
<TabItem value="required">
8588

8689
```sql
87-
<<<json
88-
{
89-
"Type": "{{ Type }}"
90-
}
91-
>>>
92-
--required properties only
90+
-- analyzer.iql (required properties only)
9391
INSERT INTO aws.accessanalyzer.analyzers (
9492
Type,
9593
region
9694
)
9795
SELECT
98-
{{ .Type }},
99-
'us-east-1';
96+
'{{ Type }}',
97+
'{{ region }}';
10098
```
10199
</TabItem>
102100
<TabItem value="all">
103101

104102
```sql
105-
<<<json
106-
{
107-
"AnalyzerName": "{{ AnalyzerName }}",
108-
"ArchiveRules": [
109-
{
110-
"Filter": [
111-
{
112-
"Contains": [
113-
"{{ Contains[0] }}"
114-
],
115-
"Eq": [
116-
"{{ Eq[0] }}"
117-
],
118-
"Exists": "{{ Exists }}",
119-
"Property": "{{ Property }}",
120-
"Neq": [
121-
"{{ Neq[0] }}"
122-
]
123-
}
124-
],
125-
"RuleName": "{{ RuleName }}"
126-
}
127-
],
128-
"Tags": [
129-
{
130-
"Key": "{{ Key }}",
131-
"Value": "{{ Value }}"
132-
}
133-
],
134-
"Type": "{{ Type }}",
135-
"AnalyzerConfiguration": {
136-
"UnusedAccessConfiguration": {
137-
"UnusedAccessAge": "{{ UnusedAccessAge }}"
138-
}
139-
}
140-
}
141-
>>>
142-
--all properties
103+
-- analyzer.iql (all properties)
143104
INSERT INTO aws.accessanalyzer.analyzers (
144105
AnalyzerName,
145106
ArchiveRules,
@@ -149,12 +110,53 @@ INSERT INTO aws.accessanalyzer.analyzers (
149110
region
150111
)
151112
SELECT
152-
{{ .AnalyzerName }},
153-
{{ .ArchiveRules }},
154-
{{ .Tags }},
155-
{{ .Type }},
156-
{{ .AnalyzerConfiguration }},
157-
'us-east-1';
113+
'{{ AnalyzerName }}',
114+
'{{ ArchiveRules }}',
115+
'{{ Tags }}',
116+
'{{ Type }}',
117+
'{{ AnalyzerConfiguration }}',
118+
'{{ region }}';
119+
```
120+
</TabItem>
121+
<TabItem value="manifest">
122+
123+
```yaml
124+
version: 1
125+
name: stack name
126+
description: stack description
127+
providers:
128+
- aws
129+
globals:
130+
- name: region
131+
value: '{{ vars.AWS_REGION }}'
132+
resources:
133+
- name: analyzer
134+
props:
135+
- name: AnalyzerName
136+
value: '{{ AnalyzerName }}'
137+
- name: ArchiveRules
138+
value:
139+
- Filter:
140+
- Contains:
141+
- '{{ Contains[0] }}'
142+
Eq:
143+
- '{{ Eq[0] }}'
144+
Exists: '{{ Exists }}'
145+
Property: '{{ Property }}'
146+
Neq:
147+
- '{{ Neq[0] }}'
148+
RuleName: '{{ RuleName }}'
149+
- name: Tags
150+
value:
151+
- Key: '{{ Key }}'
152+
Value: '{{ Value }}'
153+
- name: Type
154+
value: '{{ Type }}'
155+
- name: AnalyzerConfiguration
156+
value:
157+
UnusedAccessConfiguration:
158+
UnusedAccessAge: '{{ UnusedAccessAge }}'
159+
158160
```
159161
</TabItem>
160162
</Tabs>

0 commit comments

Comments
 (0)