You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
> **Note:**Run `source .env` at any time to update these values in your terminal session. Do NOT commit this file to a GitHub repo.
88
+
> **Note:**This repo ignores `.accounts`file
111
89
112
90
### Confluent Cloud
113
91
114
92
1. Create Confluent Cloud API keys by following [this](https://registry.terraform.io/providers/confluentinc/confluent/latest/docs/guides/sample-project#summary) guide.
115
93
116
94
> **Note:** This is different than Kafka cluster API keys.
117
95
118
-
1. Update the `.env` file for the following variables with your credentials.
96
+
1. Update the `.accounts` file for the following variables with your credentials.
119
97
120
98
```bash
121
99
CONFLUENT_CLOUD_EMAIL=<replace>
@@ -162,11 +140,9 @@ This demo uses Terraform and bash scripting to create and teardown infrastructur
162
140
163
141
> **Note:** If your Snowflake account isn't in AWS-US-West-2 refer to [doc](https://docs.snowflake.com/en/user-guide/admin-account-identifier#snowflake-region-ids) to identify your account locator.
164
142
165
-
1. Update your `.env` file and add the newly created credentials for the following variables
143
+
1. Update your `.accounts` file and add the newly created credentials for the following variable
@@ -179,21 +155,31 @@ This demo uses Terraform and bash scripting to create and teardown infrastructur
179
155
180
156
> **Note:** For troubleshooting or more information review the [doc](https://quickstarts.snowflake.com/guide/terraforming_snowflake/index.html?index=..%2F..index#2).
181
157
182
-
1. Source the `.env`file.
158
+
### Create a local environment file
183
159
184
-
```
160
+
1. Navigate to the home directory of the project and run `create_env.sh` script. This bash script copies the content of `.accounts` file into a new file called `.env` and append additional variables to it.
161
+
162
+
```bash
185
163
cd demo-change-data-capture
164
+
./create_env.sh
165
+
```
166
+
167
+
1. Source `.env` file.
168
+
169
+
```bash
186
170
source .env
187
171
```
188
172
173
+
> **Note:**: if you don't source `.env` file you'll be prompted to manually provide the values through command line when running Terraform commands.
174
+
189
175
### Build your cloud infrastructure
190
176
191
177
1. Log into your AWS account through command line.
192
178
193
179
1. Navigate to the repo's terraform directory.
194
180
195
181
```bash
196
-
cd terraform
182
+
cddemo-change-data-capture/terraform
197
183
```
198
184
199
185
1. Initialize Terraform within the directory.
@@ -218,18 +204,18 @@ This demo uses Terraform and bash scripting to create and teardown infrastructur
218
204
terraform apply -var sg_package="ADVANCED"
219
205
```
220
206
221
-
1. Write the output of `terraform` to a JSON file. The `env.sh` script will parse the JSON file to update the `.env` file.
207
+
1. Write the output of `terraform` to a JSON file. The `setup.sh` script will parse the JSON file to update the `.env` file.
222
208
223
209
```bash
224
210
terraform output -json > ../resources.json
225
211
```
226
212
227
213
> **Note:**_Verify that the `resources.json` is created at root level of demo-change-data-capture directory._
0 commit comments