Skip to content

Commit f4b7752

Browse files
committed
test
1 parent 0f3864d commit f4b7752

File tree

2 files changed

+113
-1
lines changed

2 files changed

+113
-1
lines changed

.gitignore

Lines changed: 52 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,4 +29,55 @@ override.tf.json
2929
# example: *tfplan*
3030

3131
.idea/
32-
.terraform.lock.hcl
32+
.terraform.lock.hcl
33+
34+
# go
35+
.DS_Store
36+
*.[56789ao]
37+
*.a[56789o]
38+
*.so
39+
*.pyc
40+
._*
41+
.nfs.*
42+
[56789a].out
43+
*~
44+
*.orig
45+
*.rej
46+
*.exe
47+
.*.swp
48+
core
49+
*.cgo*.go
50+
*.cgo*.c
51+
_cgo_*
52+
_obj
53+
_test
54+
_testmain.go
55+
56+
/VERSION.cache
57+
/bin/
58+
/build.out
59+
/doc/articles/wiki/*.bin
60+
/goinstall.log
61+
/last-change
62+
/misc/cgo/life/run.out
63+
/misc/cgo/stdio/run.out
64+
/misc/cgo/testso/main
65+
/pkg/
66+
/src/*.*/
67+
/src/cmd/cgo/zdefaultcc.go
68+
/src/cmd/dist/dist
69+
/src/cmd/go/internal/cfg/zdefaultcc.go
70+
/src/cmd/go/internal/cfg/zosarch.go
71+
/src/cmd/internal/objabi/zbootstrap.go
72+
/src/go/build/zcgo.go
73+
/src/go/doc/headscan
74+
/src/runtime/internal/sys/zversion.go
75+
/src/unicode/maketables
76+
/test.out
77+
/test/garbage/*.out
78+
/test/pass.out
79+
/test/run.out
80+
/test/times.out
81+
82+
# ignore requried vars file
83+
**/test_data

README.md

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,63 @@
1+
[![](https://img.shields.io/badge/license-Apache%202-blue.svg)](https://www.apache.org/licenses/LICENSE-2.0)
12
# terraform-aws-elasticache
23
Terraform module elasticache
4+
5+
## Versions
6+
7+
- Module tested for Terraform 0.14.
8+
- AWS provider version [3.29.0](https://registry.terraform.io/providers/hashicorp/aws/latest)
9+
- `main` branch: Provider versions not pinned to keep up with Terraform releases
10+
- `tags` releases: Tags are pinned with versions (use latest tag in your releases)
11+
12+
**NOTE:**
13+
14+
- Read more on [tfremote](https://github.com/tomarv2/tfremote)
15+
16+
## Usage
17+
18+
Recommended method:
19+
20+
- Create python 3.6+ virtual environment
21+
```
22+
python3 -m venv <venv name>
23+
```
24+
25+
- Install package:
26+
```
27+
pip install tfremote
28+
```
29+
30+
- Set below environment variables:
31+
```
32+
export TF_AWS_BUCKET=<remote state bucket name>
33+
export TF_AWS_PROFILE=default
34+
export TF_AWS_BUCKET_REGION=us-west-2
35+
export PATH=$PATH:/usr/local/bin/
36+
```
37+
38+
- Update:
39+
```
40+
example/custom/sample.tfvars
41+
```
42+
43+
- Change to:
44+
```
45+
example/base
46+
```
47+
48+
- Run and verify the output before deploying:
49+
```
50+
tf -cloud aws plan -var-file <path to .tfvars file>
51+
```
52+
53+
- Run below to deploy:
54+
```
55+
tf -cloud aws apply -var-file <path to .tfvars file>
56+
```
57+
58+
- Run below to destroy:
59+
```
60+
tf -cloud aws destroy -var-file <path to .tfvars file>
61+
```
62+
63+
Please refer to example directory [link](example/README.md) for references.

0 commit comments

Comments
 (0)