Skip to content

Commit

Permalink
Merge pull request #8 from rodrigodelmonte/change_actions_resources
Browse files Browse the repository at this point in the history
Changes Github Actions and terraform resource name
  • Loading branch information
Rodrigo Monte authored Jun 22, 2020
2 parents 6d0877d + d24c348 commit 7dbb21c
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 10 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/terraform.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
name: 'Terraform GitHub Actions'
name: 'Terraform Module Tests'

on:
- pull_request
push:
branches:
- master
pull_request:

jobs:
terraform:
Expand Down
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
![Terraform Module Tests](https://github.com/rodrigodelmonte/terraform-aws-kinesis-stream/workflows/Terraform%Modules%20Tests/badge.svg)

# AWS Kinesis Stream Terraform module

Terraform module which creates Kinesis Stream resources on AWS.
Expand All @@ -16,7 +18,7 @@ Terraform 0.12. Module version to ~> v2.0.
module "kinesis-stream" {
source = "rodrigodelmonte/kinesis-stream/aws"
version = "2.0.0"
version = "v2.0.1"
name = "kinesis_stream_example"
shard_count = 1
Expand Down
8 changes: 4 additions & 4 deletions main.tf
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
resource "aws_kinesis_stream" "stream" {
resource "aws_kinesis_stream" "this" {

name = var.name
shard_count = var.shard_count
Expand Down Expand Up @@ -28,7 +28,7 @@ resource "aws_iam_policy" "read-only" {
"kinesis:SubscribeToShard"
]
Resource = [
aws_kinesis_stream.stream.arn
aws_kinesis_stream.this.arn
]
}
])
Expand All @@ -49,7 +49,7 @@ resource "aws_iam_policy" "write-only" {
"kinesis:PutRecords",
]
Resource = [
aws_kinesis_stream.stream.arn
aws_kinesis_stream.this.arn
]
}
])
Expand All @@ -69,7 +69,7 @@ resource "aws_iam_policy" "admin" {
"kinesis:*",
]
Resource = [
aws_kinesis_stream.stream.arn
aws_kinesis_stream.this.arn
]
}
])
Expand Down
6 changes: 3 additions & 3 deletions outputs.tf
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
output "kinesis_stream_name" {
description = "The unique Kinesis stream name"
value = aws_kinesis_stream.stream.name
value = aws_kinesis_stream.this.name
}

output "kinesis_stream_shard_count" {
description = "The count of shards for this Kinesis stream"
value = aws_kinesis_stream.stream.shard_count
value = aws_kinesis_stream.this.shard_count
}

output "kinesis_stream_arn" {
description = "The Amazon Resource Name (ARN) specifying the Stream"
value = aws_kinesis_stream.stream.arn
value = aws_kinesis_stream.this.arn
}

output "kinesis_stream_iam_policy_read_only_arn" {
Expand Down

0 comments on commit 7dbb21c

Please sign in to comment.