Terraform bash snippets
Jump to navigation
Jump to search
sed -i -e '/backend "azurerm"/,/}/ { /resource_group_name/ { s/resource_group_name = .*/resource_group_name = "new-resource-group"/ } /key/!s/}/ resource_group_name = "new-resource-group"\n&/ }' terraform.tf