Skip to content

Instantly share code, notes, and snippets.

View nick96's full-sized avatar
☁️
Chilling in the cloud

Nick Spain nick96

☁️
Chilling in the cloud
View GitHub Profile
@buildkite-elastic-stack-releaser
buildkite-elastic-stack-releaser / convert.rb
Last active November 22, 2021 03:24
Generate a terraform module for an Elastic CI Stack for AWS CloudFormation Template
#!/usr/bin/env ruby
file = ARGV[0]
if file.nil?
raise "Provide a path to a CloudFormation template"
end
$stderr.puts "Converting #{file}"
contents = File.read(file)