Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Atmos Design Patterns docs #486

Merged
merged 208 commits into from
Jan 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
208 commits
Select commit Hold shift + click to select a range
900ce4b
Update docs
aknysh Dec 9, 2023
9e76c02
Update docs
aknysh Dec 9, 2023
46af3a6
Update docs
aknysh Dec 9, 2023
01d287d
Update docs
aknysh Dec 9, 2023
32f19a2
Update docs
aknysh Dec 10, 2023
a484b00
Update docs
aknysh Dec 11, 2023
0d43487
Update docs
aknysh Dec 12, 2023
d14f883
Updates
aknysh Dec 14, 2023
7bda89d
Updates
aknysh Dec 14, 2023
45d1dc6
Merge remote-tracking branch 'origin/master' into design-patterns-2
aknysh Dec 14, 2023
d77e880
Merge branch 'master' into design-patterns-2
aknysh Dec 14, 2023
4dc90a7
Updates
aknysh Dec 16, 2023
36660ca
Merge remote-tracking branch 'origin/design-patterns-2' into design-p…
aknysh Dec 16, 2023
20dc291
Updates
aknysh Dec 16, 2023
439efc6
Updates
aknysh Dec 16, 2023
64428c1
Updates
aknysh Dec 16, 2023
2a85448
Updates
aknysh Dec 16, 2023
277ad1e
Updates
aknysh Dec 16, 2023
b1d5ca7
Updates
aknysh Dec 17, 2023
2d4458b
Updates
aknysh Dec 17, 2023
feab7d3
Updates
aknysh Dec 17, 2023
5b29ccf
Updates
aknysh Dec 17, 2023
cc15a27
Updates
aknysh Dec 17, 2023
4e63fb0
Updates
aknysh Dec 17, 2023
6369a8a
Updates
aknysh Dec 17, 2023
fb43394
Updates
aknysh Dec 17, 2023
eb7eb41
Merge branch 'master' into design-patterns-2
aknysh Dec 17, 2023
abae424
Updates
aknysh Dec 17, 2023
8b35f29
Merge remote-tracking branch 'origin/design-patterns-2' into design-p…
aknysh Dec 17, 2023
67cc078
Updates
aknysh Dec 17, 2023
c0fc091
Updates
aknysh Dec 17, 2023
3e6f559
Updates
aknysh Dec 18, 2023
6ee4243
Updates
aknysh Dec 18, 2023
1c0eef5
Updates
aknysh Dec 18, 2023
dd5c844
Updates
aknysh Dec 19, 2023
18599fb
Updates
aknysh Dec 19, 2023
83daaa2
Updates
aknysh Dec 20, 2023
d8474dc
Updates
aknysh Dec 20, 2023
7a41a30
Updates
aknysh Dec 21, 2023
b4cca4c
Updates
aknysh Dec 21, 2023
3b68af7
Updates
aknysh Dec 21, 2023
7a44137
Updates
aknysh Dec 21, 2023
a373888
Updates
aknysh Dec 21, 2023
dfa3feb
Updates
aknysh Dec 21, 2023
634ac6b
Updates
aknysh Dec 22, 2023
cf4f286
Updates
aknysh Dec 23, 2023
0391914
Updates
aknysh Dec 23, 2023
68bda31
Updates
aknysh Dec 23, 2023
d9e53f0
Updates
aknysh Dec 23, 2023
d4ebda5
Updates
aknysh Dec 23, 2023
2bc71d8
Updates
aknysh Dec 23, 2023
991f06d
Updates
aknysh Dec 24, 2023
0815b75
Updates
aknysh Dec 24, 2023
af653db
Updates
aknysh Dec 24, 2023
95f4b65
Updates
aknysh Dec 24, 2023
5389da6
Updates
aknysh Dec 24, 2023
dc7e481
Updates
aknysh Dec 24, 2023
b4f4a3e
Updates
aknysh Dec 24, 2023
f3fc80a
Updates
aknysh Dec 24, 2023
5a4b4ac
Updates
aknysh Dec 24, 2023
931982d
Updates
aknysh Dec 24, 2023
b8a9665
Updates
aknysh Dec 25, 2023
7cc5616
Updates
aknysh Dec 25, 2023
46f544f
Updates
aknysh Dec 25, 2023
b5c9cb8
Updates
aknysh Dec 25, 2023
86ff362
Updates
aknysh Dec 25, 2023
d4873a0
Updates
aknysh Dec 25, 2023
b37c9a4
Updates
aknysh Dec 25, 2023
0118c9d
Updates
aknysh Dec 25, 2023
9274ea3
Updates
aknysh Dec 25, 2023
bb239a5
Updates
aknysh Dec 25, 2023
aa4e930
Updates
aknysh Dec 25, 2023
6f839b4
Updates
aknysh Dec 26, 2023
81c2dd0
Updates
aknysh Dec 26, 2023
d93f572
Updates
aknysh Dec 26, 2023
cf38d1d
Updates
aknysh Dec 26, 2023
703ff73
Updates
aknysh Dec 26, 2023
ab79600
Updates
aknysh Dec 26, 2023
1a98212
Updates
aknysh Dec 26, 2023
0cb7de7
Updates
aknysh Dec 26, 2023
50234a6
Updates
aknysh Dec 26, 2023
f55bed3
Updates
aknysh Dec 26, 2023
bc4f10f
Updates
aknysh Dec 26, 2023
ba6a2b6
Updates
aknysh Dec 26, 2023
83d50b7
Updates
aknysh Dec 26, 2023
b8c4041
Updates
aknysh Dec 27, 2023
0c0d311
Updates
aknysh Dec 27, 2023
b3081af
Updates
aknysh Dec 27, 2023
c445edd
Updates
aknysh Dec 27, 2023
6f543cd
Updates
aknysh Dec 27, 2023
68eb03c
Updates
aknysh Dec 27, 2023
ab22f22
Updates
aknysh Dec 27, 2023
f839e05
Updates
aknysh Dec 27, 2023
1d19e7e
Updates
aknysh Dec 27, 2023
fc3a3f8
Updates
aknysh Dec 27, 2023
9cc6b4e
Updates
aknysh Dec 27, 2023
927e984
Updates
aknysh Dec 27, 2023
277c6d8
Updates
aknysh Dec 28, 2023
dca5940
Updates
aknysh Dec 28, 2023
f30321c
Updates
aknysh Dec 28, 2023
12137ec
Updates
aknysh Dec 28, 2023
c1bec47
Updates
aknysh Dec 28, 2023
1ad509e
Updates
aknysh Dec 28, 2023
4e2bdb1
Updates
aknysh Dec 28, 2023
adfdc0c
Updates
aknysh Dec 28, 2023
51c7af9
Updates
aknysh Dec 28, 2023
121ebd5
Updates
aknysh Dec 28, 2023
fc00fa5
Updates
aknysh Dec 28, 2023
704ac37
Updates
aknysh Dec 28, 2023
613c55e
Updates
aknysh Dec 28, 2023
1ffde2a
Merge branch 'master' into design-patterns-2
aknysh Dec 28, 2023
04bacd8
Updates
aknysh Dec 28, 2023
5ff6f9e
Updates
aknysh Jan 2, 2024
dbb085f
Updates
aknysh Jan 3, 2024
43d87c3
Updates
aknysh Jan 3, 2024
4ea92c2
Updates
aknysh Jan 3, 2024
486b27d
Updates
aknysh Jan 3, 2024
0afb8f1
Updates
aknysh Jan 3, 2024
e565501
Updates
aknysh Jan 3, 2024
009808c
Updates
aknysh Jan 3, 2024
8b87cb2
Update website/docs/design-patterns/inline-component-configuration.md
aknysh Jan 3, 2024
94afc33
Updates
aknysh Jan 3, 2024
bf69d5c
Merge remote-tracking branch 'origin/design-patterns-2' into design-p…
aknysh Jan 3, 2024
926698f
Updates
aknysh Jan 3, 2024
3c28f68
Updates
aknysh Jan 3, 2024
efd2800
Updates
aknysh Jan 3, 2024
2310f89
Updates
aknysh Jan 4, 2024
53b708d
Updates
aknysh Jan 4, 2024
0243a48
Updates
aknysh Jan 4, 2024
3769335
Updates
aknysh Jan 4, 2024
c5631e9
Updates
aknysh Jan 4, 2024
c1ba713
Update website/docs/quick-start/configure-terraform-backend.md
aknysh Jan 4, 2024
4b95ac4
Update website/docs/design-patterns/summary.md
aknysh Jan 4, 2024
73862ef
Update website/docs/design-patterns/summary.md
aknysh Jan 4, 2024
5471ab9
Update website/docs/design-patterns/summary.md
aknysh Jan 4, 2024
b05d8ef
Update website/docs/design-patterns/design-patterns.mdx
aknysh Jan 4, 2024
85e6c9f
Update website/docs/design-patterns/design-patterns.mdx
aknysh Jan 4, 2024
031855b
Update website/docs/design-patterns/component-inheritance.md
aknysh Jan 4, 2024
c59e74d
Update website/docs/design-patterns/design-patterns.mdx
aknysh Jan 4, 2024
b86eee6
Updates
aknysh Jan 4, 2024
9996afe
Updates
aknysh Jan 4, 2024
cf8506a
Updates
aknysh Jan 5, 2024
c2fef68
Merge remote-tracking branch 'origin/master' into design-patterns-2
aknysh Jan 6, 2024
6476b63
Updates
aknysh Jan 6, 2024
46a7723
chore: update demo gif
actions-user Jan 6, 2024
35ada27
Updates
aknysh Jan 6, 2024
5e069f4
Merge remote-tracking branch 'origin/design-patterns-2' into design-p…
aknysh Jan 6, 2024
b0b9f9a
chore: update demo gif
actions-user Jan 6, 2024
31040ec
Updates
aknysh Jan 6, 2024
117ac30
chore: update demo gif
actions-user Jan 6, 2024
44ecd52
Updates
aknysh Jan 6, 2024
655b629
Merge remote-tracking branch 'origin/design-patterns-2' into design-p…
aknysh Jan 6, 2024
b48ad22
chore: update demo gif
actions-user Jan 6, 2024
d181ffa
Updates
aknysh Jan 6, 2024
4aebdb5
chore: update demo gif
actions-user Jan 6, 2024
4376524
Updates
aknysh Jan 6, 2024
f3887fd
Merge remote-tracking branch 'origin/design-patterns-2' into design-p…
aknysh Jan 6, 2024
6e0d1b7
chore: update demo gif
actions-user Jan 6, 2024
f6a6b28
Updates
aknysh Jan 8, 2024
94bc568
chore: update demo gif
actions-user Jan 8, 2024
4d9dc7d
Update .goreleaser.yml
aknysh Jan 9, 2024
c364374
chore: update demo gif
actions-user Jan 9, 2024
b10a4ff
Update website/docs/design-patterns/abstract-component.md
aknysh Jan 9, 2024
0ffedcb
chore: update demo gif
actions-user Jan 9, 2024
7850a1a
Updates
aknysh Jan 9, 2024
100b96f
chore: update demo gif
actions-user Jan 9, 2024
fb5995a
Apply suggestions from code review
aknysh Jan 9, 2024
4340d32
Update website/docs/design-patterns/component-catalog-template.md
aknysh Jan 9, 2024
4bd644f
Update website/docs/design-patterns/component-catalog-template.md
aknysh Jan 9, 2024
531f226
Updates
aknysh Jan 9, 2024
97fd75f
chore: update demo gif
actions-user Jan 9, 2024
f5b9701
Update website/docs/design-patterns/component-inheritance.md
aknysh Jan 9, 2024
f57c3a1
Update website/docs/design-patterns/component-inheritance.md
aknysh Jan 9, 2024
0890a9d
Update website/docs/design-patterns/component-inheritance.md
aknysh Jan 9, 2024
60d041e
Update website/docs/design-patterns/component-overrides.md
aknysh Jan 9, 2024
82628a1
Update website/docs/design-patterns/layered-stack-configuration.md
aknysh Jan 9, 2024
f370121
chore: update demo gif
actions-user Jan 9, 2024
9ade584
Update website/docs/design-patterns/multiple-component-instances.md
aknysh Jan 9, 2024
d5e31c3
Update website/docs/design-patterns/organizational-structure-configur…
aknysh Jan 9, 2024
d80c485
Update website/docs/design-patterns/organizational-structure-configur…
aknysh Jan 9, 2024
dface94
Update website/docs/design-patterns/organizational-structure-configur…
aknysh Jan 9, 2024
658be69
Update website/docs/design-patterns/organizational-structure-configur…
aknysh Jan 9, 2024
f0d549b
Update website/docs/design-patterns/organizational-structure-configur…
aknysh Jan 9, 2024
26aca02
chore: update demo gif
actions-user Jan 9, 2024
9b739e6
Updates
aknysh Jan 9, 2024
d84cbad
Merge remote-tracking branch 'origin/design-patterns-2' into design-p…
aknysh Jan 9, 2024
bde98f2
chore: update demo gif
actions-user Jan 9, 2024
c722b82
Updates
aknysh Jan 9, 2024
eb73455
Merge remote-tracking branch 'origin/design-patterns-2' into design-p…
aknysh Jan 9, 2024
6ff240f
chore: update demo gif
actions-user Jan 9, 2024
7a89d2c
Updates
aknysh Jan 9, 2024
d218d6d
Merge remote-tracking branch 'origin/design-patterns-2' into design-p…
aknysh Jan 9, 2024
ee430ff
chore: update demo gif
actions-user Jan 9, 2024
791d1fe
Updates
aknysh Jan 9, 2024
d244bab
chore: update demo gif
actions-user Jan 9, 2024
7fcd038
Updates
aknysh Jan 9, 2024
4f56b47
Merge remote-tracking branch 'origin/design-patterns-2' into design-p…
aknysh Jan 9, 2024
bce4f07
chore: update demo gif
actions-user Jan 9, 2024
6569f53
Updates
aknysh Jan 9, 2024
344abe5
Merge remote-tracking branch 'origin/design-patterns-2' into design-p…
aknysh Jan 9, 2024
73c3af5
chore: update demo gif
actions-user Jan 9, 2024
bc90c31
Updates
aknysh Jan 9, 2024
e173918
Merge remote-tracking branch 'origin/design-patterns-2' into design-p…
aknysh Jan 9, 2024
d4a8f7b
chore: update demo gif
actions-user Jan 9, 2024
a27058c
Updates
aknysh Jan 9, 2024
1be6733
Merge remote-tracking branch 'origin/design-patterns-2' into design-p…
aknysh Jan 9, 2024
d9e2b1d
Updates
aknysh Jan 9, 2024
92c2162
chore: update demo gif
actions-user Jan 9, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 4 additions & 5 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
# Visit https://goreleaser.com for documentation on how to customize this behavior.

before:
#hooks:
# - 'go mod tidy'

#before:
# hooks:
# - 'go mod tidy'
builds:
- env:
# goreleaser does not work with CGO, it could also complicate
Expand Down Expand Up @@ -34,7 +33,7 @@ checksum:
name_template: '{{ .ProjectName }}_{{ .Version }}_SHA256SUMS'
algorithm: sha256

release:
#release:
# If you want to manually examine the release before it is live, uncomment this line:
# draft: true

Expand Down
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@
same "printed page" as the copyright notice for easier
identification within third-party archives.

Copyright 2020-2023 Cloud Posse, LLC
Copyright 2020-2024 Cloud Posse, LLC

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand Down
13 changes: 6 additions & 7 deletions atmos.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -333,16 +333,15 @@ schemas:
# Can also be set using 'ATMOS_SCHEMAS_OPA_BASE_PATH' ENV var, or '--schemas-opa-dir' command-line arguments
# Supports both absolute and relative paths
base_path: "stacks/schemas/opa"
# https://cuelang.org
cue:
# Can also be set using 'ATMOS_SCHEMAS_CUE_BASE_PATH' ENV var, or '--schemas-cue-dir' command-line arguments
# Supports both absolute and relative paths
base_path: "stacks/schemas/cue"
# JSON Schema to validate Atmos manifests
# https://www.schemastore.org/json
# https://atmos.tools/reference/schemas/
# https://atmos.tools/cli/commands/validate/stacks/
# https://atmos.tools/quick-start/configure-validation/
# https://atmos.tools/schemas/atmos/atmos-manifest/1.0/atmos-manifest.json
# https://json-schema.org/draft/2020-12/release-notes
# https://www.schemastore.org/json
# https://github.com/SchemaStore/schemastore
atmos:
# Can also be set using 'ATMOS_SCHEMAS_ATMOS_MANIFEST' ENV var, or '--schemas-atmos-manifest' command-line arguments
# Supports both absolute and relative paths (relative to the `base_path` setting in `atmos.yaml`)
manifest: "schemas/atmos-manifest/1.0/atmos-manifest.json"
manifest: "stacks/schemas/atmos/atmos-manifest/1.0/atmos-manifest.json"
3 changes: 2 additions & 1 deletion cmd/atlantis_generate_repo_config.go
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
package cmd

import (
"github.com/spf13/cobra"

e "github.com/cloudposse/atmos/internal/exec"
u "github.com/cloudposse/atmos/pkg/utils"
"github.com/spf13/cobra"
)

// atlantisGenerateRepoConfigCmd generates repository configuration for Atlantis
Expand Down
3 changes: 2 additions & 1 deletion cmd/aws_eks_update_kubeconfig.go
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
package cmd

import (
"github.com/spf13/cobra"

e "github.com/cloudposse/atmos/internal/exec"
u "github.com/cloudposse/atmos/pkg/utils"
"github.com/spf13/cobra"
)

// awsEksCmdUpdateKubeconfigCmd executes 'aws eks update-kubeconfig' command
Expand Down
3 changes: 2 additions & 1 deletion cmd/completion.go
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
package cmd

import (
"github.com/spf13/cobra"
"os"

"github.com/spf13/cobra"

u "github.com/cloudposse/atmos/pkg/utils"
)

Expand Down
3 changes: 2 additions & 1 deletion cmd/describe_component.go
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
package cmd

import (
"github.com/spf13/cobra"

e "github.com/cloudposse/atmos/internal/exec"
u "github.com/cloudposse/atmos/pkg/utils"
"github.com/spf13/cobra"
)

// describeComponentCmd describes configuration for components
Expand Down
3 changes: 2 additions & 1 deletion cmd/describe_config.go
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
package cmd

import (
"github.com/spf13/cobra"

e "github.com/cloudposse/atmos/internal/exec"
u "github.com/cloudposse/atmos/pkg/utils"
"github.com/spf13/cobra"
)

// describeComponentCmd describes configuration for components
Expand Down
3 changes: 2 additions & 1 deletion cmd/describe_stacks.go
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
package cmd

import (
"github.com/spf13/cobra"

e "github.com/cloudposse/atmos/internal/exec"
u "github.com/cloudposse/atmos/pkg/utils"
"github.com/spf13/cobra"
)

// describeStacksCmd describes configuration for stacks and components in the stacks
Expand Down
3 changes: 2 additions & 1 deletion cmd/helmfile_generate_varfile.go
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
package cmd

import (
"github.com/spf13/cobra"

e "github.com/cloudposse/atmos/internal/exec"
u "github.com/cloudposse/atmos/pkg/utils"
"github.com/spf13/cobra"
)

// helmfileGenerateVarfileCmd generates varfile for a helmfile component
Expand Down
3 changes: 2 additions & 1 deletion cmd/terraform_generate_backend.go
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
package cmd

import (
"github.com/spf13/cobra"

e "github.com/cloudposse/atmos/internal/exec"
u "github.com/cloudposse/atmos/pkg/utils"
"github.com/spf13/cobra"
)

// terraformGenerateBackendCmd generates backend config for a terraform component
Expand Down
3 changes: 2 additions & 1 deletion cmd/terraform_generate_backends.go
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
package cmd

import (
"github.com/spf13/cobra"

e "github.com/cloudposse/atmos/internal/exec"
u "github.com/cloudposse/atmos/pkg/utils"
"github.com/spf13/cobra"
)

// terraformGenerateBackendsCmd generates backend configs for all terraform components
Expand Down
3 changes: 2 additions & 1 deletion cmd/terraform_generate_varfile.go
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
package cmd

import (
"github.com/spf13/cobra"

e "github.com/cloudposse/atmos/internal/exec"
u "github.com/cloudposse/atmos/pkg/utils"
"github.com/spf13/cobra"
)

// terraformGenerateVarfileCmd generates varfile for a terraform component
Expand Down
3 changes: 2 additions & 1 deletion cmd/terraform_generate_varfiles.go
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
package cmd

import (
"github.com/spf13/cobra"

e "github.com/cloudposse/atmos/internal/exec"
u "github.com/cloudposse/atmos/pkg/utils"
"github.com/spf13/cobra"
)

// terraformGenerateVarfilesCmd generates varfiles for all terraform components in all stacks
Expand Down
3 changes: 2 additions & 1 deletion cmd/validate_component.go
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
package cmd

import (
"github.com/spf13/cobra"

e "github.com/cloudposse/atmos/internal/exec"
u "github.com/cloudposse/atmos/pkg/utils"
"github.com/spf13/cobra"
)

// validateComponentCmd validates atmos components
Expand Down
9 changes: 9 additions & 0 deletions cmd/validate_stacks.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
package cmd

import (
cfg "github.com/cloudposse/atmos/pkg/config"
"github.com/cloudposse/atmos/pkg/schema"
"github.com/spf13/cobra"

e "github.com/cloudposse/atmos/internal/exec"
Expand All @@ -18,6 +20,13 @@ var ValidateStacksCmd = &cobra.Command{
if err != nil {
u.LogErrorAndExit(err)
}

cliConfig, err := cfg.InitCliConfig(schema.ConfigAndStacksInfo{}, false)
if err != nil {
u.LogErrorAndExit(err)
}

u.LogInfo(cliConfig, "all stacks validated successfully\n")
},
}

Expand Down
3 changes: 2 additions & 1 deletion cmd/vendor_diff.go
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
package cmd

import (
"github.com/spf13/cobra"

e "github.com/cloudposse/atmos/internal/exec"
u "github.com/cloudposse/atmos/pkg/utils"
"github.com/spf13/cobra"
)

// vendorDiffCmd executes 'vendor diff' CLI commands
Expand Down
8 changes: 5 additions & 3 deletions cmd/vendor_pull.go
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
package cmd

import (
"github.com/spf13/cobra"

e "github.com/cloudposse/atmos/internal/exec"
u "github.com/cloudposse/atmos/pkg/utils"
"github.com/spf13/cobra"
)

// vendorPullCmd executes 'vendor pull' CLI commands
Expand All @@ -21,10 +22,11 @@ var vendorPullCmd = &cobra.Command{
}

func init() {
vendorPullCmd.PersistentFlags().StringP("component", "c", "", "atmos vendor pull --component <component>")
vendorPullCmd.PersistentFlags().StringP("stack", "s", "", "atmos vendor pull --stack <stack>")
vendorPullCmd.PersistentFlags().StringP("component", "c", "", "Only vendor the specified component: atmos vendor pull --component <component>")
vendorPullCmd.PersistentFlags().StringP("stack", "s", "", "Only vendor the specified stack: atmos vendor pull --stack <stack>")
vendorPullCmd.PersistentFlags().StringP("type", "t", "terraform", "atmos vendor pull --component <component> --type=terraform|helmfile")
vendorPullCmd.PersistentFlags().Bool("dry-run", false, "atmos vendor pull --component <component> --dry-run")
vendorPullCmd.PersistentFlags().String("tags", "", "Only vendor the components that have the specified tags: atmos vendor pull --tags=dev,test")

vendorCmd.AddCommand(vendorPullCmd)
}
3 changes: 2 additions & 1 deletion cmd/workflow.go
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
package cmd

import (
"github.com/spf13/cobra"

e "github.com/cloudposse/atmos/internal/exec"
u "github.com/cloudposse/atmos/pkg/utils"
"github.com/spf13/cobra"
)

// workflowCmd executes a workflow
Expand Down
12 changes: 6 additions & 6 deletions demo.tape
Original file line number Diff line number Diff line change
Expand Up @@ -42,18 +42,19 @@ Sleep 1

Type "# Let's see what components we have available!" Sleep 500ms Enter
Type "atmos list components" Sleep 500ms Enter
Sleep 500ms
Sleep 1

Type "# Let's see where they can be deployed" Sleep 500ms Enter
Type "atmos list stacks" Sleep 500ms Enter
Sleep 1

Type "# Let's review the production VPC configuration in the ue2 region..." Sleep 500ms Enter
Type "atmos describe stacks --components=vpc --stack=plat-uw2-prod --sections=vars" Sleep 500ms Enter
Sleep 500ms
Type "# Let's review the production VPC configuration in the us-east-2 region..." Sleep 500ms Enter
Type "atmos describe stacks --components=vpc --stack=plat-ue2-prod --sections=vars" Sleep 500ms Enter
Sleep 1

Type "# Or checkout all VPCs" Sleep 500ms Enter
Type "atmos describe stacks --components=vpc --sections=vars | less" Sleep 500ms Enter
Sleep 500ms
Sleep 1

Down 25 Sleep 500ms
Down 25 Sleep 500ms
Expand All @@ -72,4 +73,3 @@ Type "# check out the docs at https://atmos.tools/" Sleep 500ms Enter
Sleep 500ms
Type "# or join us in #atmos at https://slack.cloudposse.com!" Sleep 500ms Enter
Sleep 2s

Binary file modified docs/demo.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 7 additions & 3 deletions examples/quick-start/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ ARG GEODESIC_VERSION=2.8.0
ARG GEODESIC_OS=debian

# atmos: https://github.com/cloudposse/atmos
ARG ATMOS_VERSION=1.51.0
ARG ATMOS_VERSION=1.53.0

# Terraform: https://github.com/hashicorp/terraform/releases
ARG TF_VERSION=1.6.5
ARG TF_VERSION=1.6.6

FROM cloudposse/geodesic:${GEODESIC_VERSION}-${GEODESIC_OS}

Expand All @@ -25,13 +25,17 @@ ENV AWS_VAULT_ENABLED=false
ENV AWS_VAULT_SERVER_ENABLED=false
ENV GEODESIC_TF_PROMPT_ACTIVE=false
ENV DIRENV_ENABLED=false
ENV NAMESPACE="acme"

# Enable advanced AWS assume role chaining for tools using AWS SDK
# https://docs.aws.amazon.com/sdk-for-go/api/aws/session/
ENV AWS_SDK_LOAD_CONFIG=1
ENV AWS_DEFAULT_REGION=us-east-2

# With Terraform 1.4, the default is for Terraform lock files to be required for cached providers to be used. It is a long story.
# See https://developer.hashicorp.com/terraform/cli/v1.4.x/config/config-file#allowing-the-provider-plugin-cache-to-break-the-dependency-lock-file
# for details. The short story is by setting this environment variable, we can continue the previous behavior.
ENV TF_PLUGIN_CACHE_MAY_BREAK_DEPENDENCY_LOCK_FILE=true

# Install specific version of Terraform
ARG TF_VERSION
RUN apt-get update && apt-get install -y -u --allow-downgrades \
Expand Down
19 changes: 6 additions & 13 deletions examples/quick-start/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,13 @@ export DOCKER_IMAGE ?= $(DOCKER_ORG)/atmos
export DOCKER_TAG ?= latest
export DOCKER_IMAGE_NAME ?= $(DOCKER_IMAGE):$(DOCKER_TAG)
export APP_NAME = atmos
GEODESIC_INSTALL_PATH ?= /usr/local/bin
export INSTALL_PATH ?= $(GEODESIC_INSTALL_PATH)
export SCRIPT = $(INSTALL_PATH)/$(APP_NAME)
export ADR_DOCS_DIR = docs/adr
export ADR_DOCS_README = $(ADR_DOCS_DIR)/README.md
BUILD_HARNESS_EXTENSIONS_PATH := $(CURDIR)/.build-harness-extensions

# Default install path, if lacking permissions, ~/.local/bin will be used instead
export INSTALL_PATH ?= /usr/local/bin

-include $(shell curl -sSL -o .build-harness "https://cloudposse.tools/build-harness"; echo .build-harness)

.DEFAULT_GOAL := default
.DEFAULT_GOAL := all

## Initialize build-harness, install deps, build docker container, install wrapper script and run shell
all: init deps build install run
Expand All @@ -26,14 +23,10 @@ deps:
build:
@make --no-print-directory docker/build

## Push docker image to registry
push:
@$(call fail,Refusing to push $(DOCKER_IMAGE_NAME) to docker hub)

## Install wrapper script from geodesic container
install:
@docker run --rm $(DOCKER_IMAGE_NAME) | bash -s $(DOCKER_TAG) || (echo "Try: sudo make install"; exit 1)
@docker run --rm --env APP_NAME --env DOCKER_IMAGE --env DOCKER_TAG --env INSTALL_PATH $(DOCKER_IMAGE_NAME) | bash -s $(DOCKER_TAG)

## Start the geodesic shell by calling wrapper script
run:
$(SCRIPT)
@$(APP_NAME)
14 changes: 14 additions & 0 deletions examples/quick-start/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,16 @@ deploying and destroying Terraform and helmfile components, as well as running w
Refer to the Atmos [Quick Start](https://atmos.tools/category/quick-start/) guide that describes the steps to configure and provision the
infrastructure from this repository.

## Run Atmos Docker Image

To run the Atmos Docker image, execute the following command:

```shell
make all
```

## Noticeable Atmos commands

<details>
<summary> Noticeable Atmos commands:</summary>

Expand Down Expand Up @@ -50,3 +60,7 @@ atmos terraform apply vpc-flow-logs-bucket -s plat-uw2-staging
atmos terraform apply vpc-flow-logs-bucket -s plat-uw2-prod
```
</details>

<br/>

For the description of the Atmos CLI configuration and all CLI commands, refer to [Atmos CLI](https://atmos.tools/cli/configuration).
Loading