mirror of
https://github.com/fleetdm/fleet
synced 2026-05-24 01:18:42 +00:00
fix firehose addon take 2 (#11369)
rename aws_iam_policy and aws_iam_policy_attachment resources to use underscore instead of hyphen in their names. Also, change aws_iam_policy_attachment to aws_iam_role_policy_attachment to match the correct resource type.
This commit is contained in:
parent
5f8e78b1f2
commit
9a2581e1d6
1 changed files with 4 additions and 4 deletions
|
|
@ -35,11 +35,11 @@ data "aws_iam_policy_document" "firehose" {
|
|||
|
||||
}
|
||||
|
||||
resource "aws_iam_policy" "fleet-firehose" {
|
||||
resource "aws_iam_policy" "fleet_firehose" {
|
||||
policy = data.aws_iam_policy_document.firehose.json
|
||||
}
|
||||
|
||||
resource "aws_iam_policy_attachment" "fleet-firehose" {
|
||||
name = aws_iam_role.fleet_role.name
|
||||
policy_arn = aws_iam_policy.fleet-firehose.arn
|
||||
resource "aws_iam_role_policy_attachment" "fleet_firehose" {
|
||||
policy_arn = aws_iam_policy.fleet_firehose.arn
|
||||
role = aws_iam_role.fleet_role.name
|
||||
}
|
||||
Loading…
Reference in a new issue