quinovas / terraform-aws-iot-topic-rule Goto Github PK
View Code? Open in Web Editor NEWCreates AWS IOT Topic rule
License: Apache License 2.0
Creates AWS IOT Topic rule
License: Apache License 2.0
Hi :) I'm trying to apply below configuration and get an error:
provider "aws" {
}
module "iot_rule" {
name = "operationResponse"
sql_query = "SELECT * FROM othertopic"
source = "QuiNovas/iot-topic-rule/aws"
version = "1.0.4"
error_logs = false
republish = [{topic = "mytopic"}]
}
Error
Do you want to perform these actions?
Terraform will perform the actions described above.
Only 'yes' will be accepted to approve.
Enter a value: yes
module.iot_rule.aws_iam_policy.republish[0]: Creating...
module.iot_rule.aws_iam_role.iot_role: Creating...
module.iot_rule.aws_iam_policy.republish[0]: Creation complete after 2s [id=arn:aws:iam::039321617281:policy/operationResponse-iot-republish]
module.iot_rule.aws_iam_role.iot_role: Creation complete after 3s [id=operationResponse-iot-role]
module.iot_rule.aws_iam_role_policy_attachment.republish[0]: Creating...
module.iot_rule.aws_iot_topic_rule.rule: Creating...
module.iot_rule.aws_iam_role_policy_attachment.republish[0]: Creation complete after 1s [id=operationResponse-iot-role-20210527151223164500000001]
╷
│ Error: error creating IoT Topic Rule (operationResponse): InvalidRequestException: iot.amazonaws.com is unable to perform: sts:AssumeRole on resource: arn:aws:iam::039321617281:role/operationResponse-iot-role
│
│ with module.iot_rule.aws_iot_topic_rule.rule,
│ on .terraform/modules/iot_rule/main.tf line 1, in resource "aws_iot_topic_rule" "rule":
│ 1: resource "aws_iot_topic_rule" "rule" {
│
╵
Could you help me? Maybe @vchinnakotla could you help?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.