Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added functionality to deploy using delegate role capability of AWS #6

Open
wants to merge 7 commits into
base: master
Choose a base branch
from

Conversation

ajayrammohan
Copy link

I have added the functionality to use the delegate role concept of AWS. This is useful if a deployment is necessary in a delegate account.

The changes in the gradle file of the application will be as follows

Before

beanstalk {
profile = 'default'
s3Endpoint = "s3-eu-west-1.amazonaws.com"
beanstalkEndpoint = "elasticbeanstalk.eu-west-1.amazonaws.com"

deployments {
    staging {
        war = aaa.war
        application = 'appName'
        environment = 'appName-env'
    }

    prelive {
        war = aaa.war
        application = 'appName'
        environment = 'appName-prelive'
    }
}

}

After

beanstalk {
profile = 'default'
s3Endpoint = "s3-eu-west-1.amazonaws.com"
beanstalkEndpoint = "elasticbeanstalk.eu-west-1.amazonaws.com"

deployments {
    staging {
        war = aaa.war
        application = 'appName'
        environment = 'appName-env'
    }

    prelive {
        account = 'accountName'
        arnRole = 'arnRole'
        war = aaa.war
        application = 'appName'
        environment = 'appName-prelive'
    }
}

}

@ajayrammohan
Copy link
Author

beanstalk {
profile = 'default'
s3Endpoint = "s3-eu-west-1.amazonaws.com"
beanstalkEndpoint = "elasticbeanstalk.eu-west-1.amazonaws.com"

deployments {
staging {
war = aaa.war
application = 'appName'
environment = 'appName-env'
}

prelive {
    account = 'accountName'
    arnRole = 'arnRole'
    s3Endpoint = "s3-endpoint"
    beanstalkEndpoint = "elasticbeanstalk.endpoint"
    war = aaa.war
    application = 'appName'
    environment = 'appName-prelive'
}

}
}

@komu
Copy link
Member

komu commented Sep 11, 2015

Oh, and I just dived into my comments and completely forgot to say: thanks for the pull request! :)

@ajayrammohan
Copy link
Author

Made changes according to review findings.

Happy to contribute :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants