brendanhay / terrafomo Goto Github PK
View Code? Open in Web Editor NEWLe Fromage de Terreur - Auto-generated Terraform DSL
License: Other
Le Fromage de Terreur - Auto-generated Terraform DSL
License: Other
Given something like this:
jobDefinition :: TF.State () "job-definition" s ()
jobDefinition = do
TF.resource_
$ AWS.newBatchJobDefinitionR
(AWS.BatchJobDefinitionR
{ AWS.name = "todo"
, AWS.type_ = "container"
})
& #container_properties .~ Just "\""
I get the output without any string escaping:
resource "aws_batch_job_definition" "r" {
provider = "aws.1"
container_properties = """
name = "todo"
type = "container"
}
If you have a global config you are using, could you check it in here 😄
A lot of AWS' responses give back the ARN type but a lot of AWS requests require Text. I have a cast at the moment, which works because it's just a newtype. Is there something existing I can do instead?
AWS.BatchComputeEnvironmentComputeResources
{ instance_role = dodgyCast (view #arn iamInstanceRole)
}
In the model there are two definitions: https://github.com/brendanhay/terrafomo/blob/master/terrafomo-gen/model/aws.json of attribute
within the schemas
list.
In the intermediate representation these have been combined into a single AttributeSettings
with the union of the two above
Ill start having a look at this now, just documenting before I do
Is there a way to explicitly import or provide native Terraform modules? If not, what are your thoughts on that?
I need to reference a data source which has a list. When I have the following code:
AWS.BatchComputeEnvironmentComputeResources
{ subnets = view #ids subnets
}
I get:
subnets = "${data.aws_subnet_ids.d.ids}"
But Terraform actually needs weird syntax like:
subnets = [
"${data.aws_subnet_ids.d.ids}",
]
Don't believe Terraform's documentation on how to reference a variable as a list. It's wrong hashicorp/terraform#13869
Perhaps it's auto-generated and you forgot to check it in?
(This project looks very promising. I hope it goes somewhere!)
Direct support for provisioners like local_exec
would be quite useful. We're bolting this onto our stale fork at the moment.
https://github.com/terraform-providers/terraform-provider-null
null_resource
has been useful as a way to run once-only provisioners via local_exec
(we don't do this very often but it has been necessary for bootstrapping EKS auth)
Have written some manual code for this but also seems like it might fit into terrafomo-builtins
.
Would be happy to do this work, just unsure if you'd rather generate it or have it written by hand.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.