Skip to content

Commit 7a1fddd

Browse files
author
Tyson Kunovsky
committed
Merge branch 'fix/readme-changes' into 'master'
fix(readme): update readme as well as homebrew script See merge request auto-cloud/cloudgraph/cli!202
2 parents a194c56 + 6386017 commit 7a1fddd

File tree

2 files changed

+14
-7
lines changed

2 files changed

+14
-7
lines changed

README.md

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -185,17 +185,24 @@ npm i -g @cloudgraph/cli
185185
You can then add the providers you want (links to provider repos: [AWS](https://github.com/cloudgraphdev/cloudgraph-provider-aws), [Azure](https://github.com/cloudgraphdev/cloudgraph-provider-azure), [GCP](https://github.com/cloudgraphdev/cloudgraph-provider-gcp), [K8s](https://github.com/cloudgraphdev/cloudgraph-provider-k8s)):
186186

187187
```bash
188-
cg provider add aws
189-
cg provider add azure
190-
cg provider add gcp
191-
cg provider add k8s
188+
cg init aws
189+
cg init azure
190+
cg init gcp
191+
cg init k8s
192+
```
193+
194+
You can also add as many as you want all at once
195+
196+
```bash
197+
cg init aws azure gcp k8s
192198
```
193199

194200
And add in compliance policy packs to supplement your data with instant security insights:
195201

196202
```bash
197-
# Currently we support AWS CIS 1.2, but Azure and GCP are coming soon.
203+
# Currently we support AWS CIS 1.2 and GCP CIS 1.2 but Azure and K8s are coming soon.
198204
cg policy add aws-cis-1.2.0
205+
cg policy add gcp-cis-1.2.0
199206
```
200207

201208
You can find a list of currently supported policy packs in the [Policy Packs repo](https://github.com/cloudgraphdev/cloudgraph-policy-packs)

release/scripts/homebrew.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ async function uploadToS3(file) {
9393
if (err) {
9494
console.log(`No valid credentials found for roleARN: ${roleArn}`)
9595
console.log(err)
96-
resolve()
96+
reject(err)
9797
} else {
9898
// successful response
9999
console.log('successfully got access keys from role')
@@ -210,7 +210,7 @@ async function updateHomebrew() {
210210

211211
console.log('updating local git...')
212212
await updateCgNodeFormula(homebrewDir)
213-
await updateCgFormula(homebrewDir)
213+
await updateCgFormula(homebrewDir).catch((err) => { throw new Error(err) })
214214

215215
// run in git in cloned cloudgraph/homebrew-tap git directory
216216
const git = async (args, opts = {}) => {

0 commit comments

Comments
 (0)