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

Updated instructions for using non default region (AWS) #24

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,11 @@ The remote state is defined in `aws/main.tf`. Variable interpolation is not allo
- `region`: The region to use. Default `us-east-1`.
- `storage_bucket`: The name of the S3 bucket to store the state file in. Default `opencti-storage`.

**Important:** If you change the region in `aws/terraform.tfvars`, you will want to change the region here, too. If you want to change the S3 bucket name (defined in `aws/terraform.tfvars`), you will also want to change it here.
**Important:**

If you change the region in `aws/terraform.tfvars`, you will want to change the region here(`aws/main.tf`), too. Also, when changing the region you will need to update the ami_id to the correct ID for the Ubuntu 20.04 LTS 64-bit x86 in your chosen region.

If you want to change the S3 bucket name (defined in `aws/terraform.tfvars`), you will also want to change it here.

### Azure
First, change into the `azure/` directory:
Expand Down
7 changes: 5 additions & 2 deletions aws/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,16 @@ terraform {
bucket = "opencti-storage"
key = "terraform.tfstate"
# Again, no variable interpolation in this block so make sure this matches the region defined in `terraform.tfvars`. Default `us-east-1`.
# If changing the region, also update the ami_id in the locals section below.
region = "us-east-1"
}
}

# These variables aren't meant to be changed by the end user.

locals {
ami_id = "ami-0074ee617a234808d" # Ubuntu 20.04 LTS
# If changing the region, ensure you update to the id for the ami in your selected region.
ami_id = "ami-0074ee617a234808d" # Ubuntu 20.04 LTS (64-bit x86)
# These variables aren't meant to be changed by the end user.
opencti_dir = "/opt/opencti"
opencti_install_script_name = "opencti-installer.sh"
opencti_connectors_script_name = "opencti-connectors.sh"
Expand Down