We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 272d113 commit cd86e21Copy full SHA for cd86e21
1 file changed
modules/vault/main.tf
@@ -105,16 +105,16 @@ data "aws_ami" "latest_ubuntu" {
105
owners = ["099720109477"]
106
}
107
108
-output "ubuntu_ami_id" {
109
- value = data.aws_ami.latest_ubuntu.id
+resource "aws_iam_instance_profile" "vault_instance_profile" {
+ name = "vault-instance-profile"
110
+ role = aws_iam_role.vault_role.name
111
112
-
113
# EC2 instance for Vault
114
resource "aws_instance" "vault" {
115
ami = data.aws_ami.latest_ubuntu.id
116
instance_type = "t3.medium"
117
- iam_instance_profile = aws_iam_role.vault_role.name
+ iam_instance_profile = aws_iam_instance_profile.vault_instance_profile.name
118
security_groups = [aws_security_group.vault_sg.name]
119
subnet_id = var.subnet_id
120
0 commit comments