Comments (2)
What you wrote is not even a valid Javascript.
Put them in array:
tfg.resource('aws_s3_bucket', 'my-bucket', {
bucket: 'my-bucket',
cors_rule: [
{
allowed_headers: ['*'],
allowed_methods: ['PUT'],
allowed_origins: ['*'],
expose_headers: [],
max_age_seconds: 0
},
{
allowed_headers: ['Authorization'],
allowed_methods: ['GET'],
allowed_origins: ['*'],
expose_headers: [],
max_age_seconds: 3000
}
]
});
`
from terraform-generator.
Of course 🤣
I didn't find a way to make it work and it's sooooo simple
Thanks a lot for the tool, I love it !
from terraform-generator.
Related Issues (20)
- Terraform Configuration is failing when provisioner added to resource HOT 2
- Interpolation-only expressions being deprecated HOT 1
- write issue on environment variables
- Passing an object to fn generates an invalid terraform file HOT 6
- Map values generated as blocks instead of variable assignment HOT 1
- Tag blocks are malformed HOT 1
- variable types are no longer supported with double quotes from terraform. HOT 2
- Comments HOT 2
- API doc is broken HOT 1
- terraform value from tfg.generate().tf is not pretty HOT 6
- Feature request: Is a read file possible to modify existing configurations? HOT 2
- Using tags inside resources not output correctly, missing "=" operator HOT 1
- Question: How does one use a keyword when adding a variable? HOT 1
- Error generating nested options when using the TerraformGenerator class HOT 2
- Variables with type constraints generate a warning with terraform cli 1.5.7 HOT 1
- in-built Terraform file function isn't recognized HOT 1
- "lcoals" should be "locals" HOT 2
- bad variable type translation HOT 5
- Import is not working by Readme manual HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from terraform-generator.