https://github.com/suryagaddipati/wow
Infrastructure as code
https://github.com/suryagaddipati/wow
aws terraform
Last synced: 2 months ago
JSON representation
Infrastructure as code
- Host: GitHub
- URL: https://github.com/suryagaddipati/wow
- Owner: suryagaddipati
- Created: 2019-03-25T02:00:26.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2019-04-24T15:11:08.000Z (about 7 years ago)
- Last Synced: 2025-01-16T04:46:55.080Z (over 1 year ago)
- Topics: aws, terraform
- Language: Scala
- Homepage:
- Size: 53.7 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: Readme.md
Awesome Lists containing this project
README
Infrastrcture as (scala )code.
### Getting started
Describe your infra
`aws.scala`
```scala
import surya.wow.aws.AWS
val one = AWS.instance(instanceType = "t2.micro", ami = "ami-2757f631")
val eip = AWS.eip(one)
```
` build.sbt` (Not needed but you can you use ide, code completion ect )
```
scalaVersion := "2.11.8"
libraryDependencies += "surya" % "wow" % "0.1.0-SNAPSHOT"
```
`wow.properties`
```
[scala]
version: 2.11.8
[app]
org: surya
name: wow
version: 0.1.0-SNAPSHOT
class: surya.wow.Main
components: xsbti
cross-versioned: false
[repositories]
local
maven-central
```
Create your infra
```
sbt @wow.properties "create aws.scala"
...
Resource Instance(ami-2757f631,t2.micro) exists. Skipping..
Resource EIP(Instance(ami-2757f631,t2.micro)) exists. Skipping..
```
Take a look at the [example repo](https://github.com/suryagaddipati/wow-examples)