Skip to content

Instantly share code, notes, and snippets.

View dharrisio's full-sized avatar

David Harris dharrisio

View GitHub Profile

Keybase proof

I hereby claim:

  • I am dharrisio on github.
  • I am dharris (https://keybase.io/dharris) on keybase.
  • I have a public key ASA04L7bFd8LPmlEEejNHfkB88bcbzfWtBh3fYtfeBbGAAo

To claim this, I am signing this object:

@dharrisio
dharrisio / create_application_version.py
Created August 16, 2016 17:11
Terraform provisioner script to create Elastic Beanstalk Application Version.
#!/usr/bin/env python
"""Upload and Create Elastic Beanstalk Application Version
https://gitlab.com/dharrisio/terraform-elastic-beanstalk-application-version
This can be used as an alternative to the Terraform managed resource aws_elastic_beanstalk_application_version. This
script is meant to be used by a continuous deployment system (Bamboo, Jenkins, etc) and it should be called in two
places:
1) Separate task/stage that runs before Terraform
› terraform plan
Refreshing Terraform state in-memory prior to plan...
The refreshed state will be used to calculate this plan, but
will not be persisted to local or remote state storage.


The Terraform execution plan has been generated and is shown below.
Resources are shown in alphabetical order for quick scanning. Green resources
will be created (or destroyed and then created if an existing resource
package aws
import (
"fmt"
"log"
"regexp"
"sort"
"strings"
"time"
@dharrisio
dharrisio / resource_aws_elastic_beanstalk_environment_test.go
Created February 3, 2016 22:46
Use available solution stack in test config
package aws
import (
"fmt"
"log"
"regexp"
"sort"
"testing"
"github.com/aws/aws-sdk-go/aws"