Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
1.3k views
in Technique[技术] by (71.8m points)

terraform - Is there a way to set a list of default platforms for lock file on init command?

I like that there is a lock file now, but I don't like how I have a remember to do this manually every time because I'm on Mac and Atlantis is on Linux:

terraform providers lock -platform=darwin_amd64 -platform=linux_amd64

That stinks. I have a super common use case. Is there no config I can have in my home dir or something to have init lock for a default set of platforms? Or at least have a Terraform config in the tf config itself with this info?

This is making it really clunky and a pain to use.

question from:https://stackoverflow.com/questions/65835451/is-there-a-way-to-set-a-list-of-default-platforms-for-lock-file-on-init-command

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...