add creation of access key for deloyibg eb apps
Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
parent
a491b05b70
commit
44ed9dbfa9
16
dev.tf
16
dev.tf
|
@ -15,6 +15,11 @@ resource "aws_iam_user" "deploy" {
|
|||
}
|
||||
}
|
||||
|
||||
resource "aws_iam_access_key" "deploy" {
|
||||
user = "${aws_iam_user.deploy.name}"
|
||||
pgp_key = "${file("files/support@dap.ps.gpg")}"
|
||||
}
|
||||
|
||||
resource "aws_iam_user_group_membership" "deploy" {
|
||||
user = "${aws_iam_user.deploy.name}"
|
||||
groups = ["${aws_iam_group.deploy.name}"]
|
||||
|
@ -26,6 +31,17 @@ resource "aws_iam_policy_attachment" "deploy" {
|
|||
policy_arn = "arn:aws:iam::aws:policy/AWSElasticBeanstalkFullAccess"
|
||||
}
|
||||
|
||||
/**
|
||||
* Uncomment this if you want to extract the secret again.
|
||||
* For details see: https://www.terraform.io/docs/providers/aws/r/iam_access_key.html
|
||||
output "deploy_access_key" {
|
||||
value = "${aws_iam_access_key.deploy.id}"
|
||||
}
|
||||
output "deploy_secret_key" {
|
||||
value = "${aws_iam_access_key.deploy.encrypted_secret}"
|
||||
}
|
||||
*/
|
||||
|
||||
/* ROLES ----------------------------------------*/
|
||||
|
||||
resource "aws_iam_instance_profile" "main" {
|
||||
|
|
|
@ -0,0 +1,31 @@
|
|||
mQGNBFz1Ww8BDACxd2f2Zjk4j/Pn0vTmg33+juSwaKZt6YcQh6VAA6teoFCyEbt4QSIoLNnagrSp
|
||||
bTMnzAocli/xBEYgB5XI/H9hizT1Zu17asU7/8PqCszo3K3xIuOaKw6SUgd38oEs+qZUcO6/ta1b
|
||||
TiOTUNO/gv1zc3iNIw9V4olTO7Jr3z3ZBF9dPvrwM7jjnDeOtELz94a6LHDNrRPVeae1Y4b21GoV
|
||||
Z8Ch/Hio3xXtLTY21T1RUd33af03dpDuiRuvtytqSjFyIYJgJ30CETo8iHqZJRvIxgwAUabyyo58
|
||||
f9IA4s8Sjw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