Comments (7)
This fails in my case because I'm running it on a CI/CD pipeline that clones the git repository every-time it runs and the module thinks that the zip file it generates in builds/ is a new one because it is always re-built on every pipeline run. I tried committing the builds directory to git source code but since the pipeline clones the repo everytime, the module always also thinks is a new zip file because the timestamp changes when the source code is cloned.
from terraform-aws-notify-slack.
Here is the fix which allows users to run this module without having archive locally.
Please use v3.1.0 and let us know if the problem persists.
So, when you update the version of this module, you need to tell your CI/CD pipeline to set environment variable before running terraform:
TF_RECREATE_MISSING_LAMBDA_PACKAGE=false terraform apply
from terraform-aws-notify-slack.
Also tried this configuration:
source = "terraform-aws-modules/notify-slack/aws"
version = "3.0.0"
instead of
source = "github.com/terraform-aws-modules/terraform-aws-notify-slack.git?ref=v3.0.0"
from terraform-aws-notify-slack.
I am trying to reproduce it now and I can't.
If resource null_resource.archive[0]
is the only one which it says "must be replaced" it means that the deployment package should be recreated locally because it has wrong timestamp. This should not happen normally.
Which version of OS, Terraform, Python do you use?
from terraform-aws-notify-slack.
Here you go:
python --version
Python 3.8.0
terraform --version
Terraform v0.12.20
tested on macOS
Maybe my backend state is somehow messed up then? Trying to understand what I'm doing wrong.
from terraform-aws-notify-slack.
Here is the fix which allows users to run this module without having archive locally.
Please use v3.1.0 and let us know if the problem persists.
So, when you update the version of this module, you need to tell your CI/CD pipeline to set environment variable before running terraform:
TF_RECREATE_MISSING_LAMBDA_PACKAGE=false terraform apply
Thanks!
from terraform-aws-notify-slack.
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.
from terraform-aws-notify-slack.
Related Issues (20)
- Noisy output HOT 4
- event to slack using event subscription HOT 1
- Noisy output HOT 4
- Support @here in Slack Notifications HOT 6
- lambda-runtime configurable HOT 3
- Make lambda logging level configurable HOT 3
- The link to the CloudWatch alarm is no longer valid. HOT 10
- SNS Feedback role is broken HOT 7
- Messages to slack are not delivered HOT 2
- Add formatting for Security Hub findings HOT 3
- Have a more descriptive Slack CloudTrail notification format HOT 3
- Apply fails when multiple module calls are used HOT 2
- Provider produced inconsistent final plan in CI/CD environment HOT 4
- AWS Lambda runtime python3.8 deprecation HOT 10
- SNS Feedback role is broken HOT 4
- Add formatter for Security Hub Findings HOT 4
- Add variable for Lambda Architecture to support ARM HOT 1
- Add formatter for Amazon Managed Prometheus alerts HOT 4
- Expected runtime expects Python 3.9 but locally using 3.11 HOT 1
- Lambda function isn't attaching to the specified VPC HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from terraform-aws-notify-slack.