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 Multi Cloud terraform example #550

Open
wants to merge 27 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
a4a86b6
Initial commit
felix-lessoer Sep 14, 2022
3f8b96f
Initial commit
felix-lessoer Sep 14, 2022
dd7368a
Update main
felix-lessoer Sep 14, 2022
b7a055f
Update README.md
felix-lessoer Sep 14, 2022
b6f3112
Update README.md
felix-lessoer Sep 23, 2022
883c751
Updated flow and Elastic content
felix-lessoer Sep 23, 2022
2a43707
Update README.md
felix-lessoer Sep 23, 2022
be66849
Update README.md
felix-lessoer Sep 23, 2022
fd3bc76
Always use latest ES version per default
felix-lessoer Sep 26, 2022
94f9734
Merge branch 'main' of https://github.com/felix-lessoer/elastic-terra…
felix-lessoer Sep 26, 2022
7e6a952
Make network configurable
felix-lessoer Sep 26, 2022
ac4cb90
Add AWS and MultiCloud
felix-lessoer Sep 30, 2022
edd5b38
Update Readme
felix-lessoer Sep 30, 2022
5bf39b0
Update README.md
felix-lessoer Sep 30, 2022
94ae647
Update AWS
felix-lessoer Oct 5, 2022
58068ec
Merge pull request #1 from felix-lessoer/add-aws
felix-lessoer Oct 5, 2022
e16e4b5
Improved Multi Cloud Setup
felix-lessoer Oct 10, 2022
799ff26
Update Readmes
felix-lessoer Oct 11, 2022
08f352e
Update
felix-lessoer Oct 11, 2022
b8eefa7
Merge pull request #2 from felix-lessoer/add-aws
felix-lessoer Oct 11, 2022
721ffcd
Update Readme
felix-lessoer Oct 11, 2022
303df1c
Merge pull request #3 from felix-lessoer/add-aws
felix-lessoer Oct 11, 2022
4e62f21
Inital commit for azure
felix-lessoer Oct 14, 2022
d1866f9
Update
felix-lessoer Oct 14, 2022
cf584a6
Merge pull request #4 from felix-lessoer/add-azure
felix-lessoer Oct 14, 2022
a2e5dec
Subtree terraform example merged
felix-lessoer Oct 14, 2022
143a0fb
Moved into the right folder
felix-lessoer Oct 14, 2022
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
2 changes: 2 additions & 0 deletions examples/multi-cloud-setup/.gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Auto detect text files and perform LF normalization
* text=auto
8 changes: 8 additions & 0 deletions examples/multi-cloud-setup/AWS/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@

.vs/slnx.sqlite
*.tfstate
*.backup
terraform/*.tfstate
terraform/.terraform
*.hcl
local_env
29 changes: 29 additions & 0 deletions examples/multi-cloud-setup/AWS/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# AWS environment

```json
{
"aws_region" : "eu-west-2",
"aws_access_key" : "<YOUR ACCESS KEY>",
"aws_secret_key" : "<YOUR SECRET KEY>"
}
```

List of other optional parameters that can be added to terraform.tfvars.json
| Parameter Name | Default value | Example | Description |
| ------------- | ------------- | ------------- | ------------- |
| elastic_version | latest | 8.4.1 | Used to define the Elastic Search version |
| elastic_region | aws-eu-west-2 | aws-eu-west-2 | Used to set the Elastic Cloud region for the AWS deployment |
| elastic_deployment_name | AWS Observe and Protect | AWS Observe and Protect | Used to define the name for the Elastic deployment |


#### Create AWS Access credentials

1. Visit the [IAM Management Console](https://us-east-1.console.aws.amazon.com/iam/home) in AWS
2. Navigate to the user you want to use for the setup
3. Click on "Security credentials"
4. Click on "Create access key" and save the credentials in your `terraform.tfvars.json` file

Hint: The credentials you choose here will also be used to authenticate the Elastic Agent against your AWS Environment. In production ready setups you might want to change that. Elastic also offers other authentication mechanisms for the Elastic Agent. This terraform script does not ATM.



Large diffs are not rendered by default.

Large diffs are not rendered by default.

Loading