Created
January 28, 2021 10:35
-
-
Save asizikov/46cf47377155fef292da378d0cb0fdca to your computer and use it in GitHub Desktop.
Deployment process for Azure WebApp (Azure Function)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# https://blog.cloud-eng.nl/2021/01/27/terraform-octopus-deploy/ | |
data "octopusdeploy_feeds" "builtin" { | |
feed_type = "BuiltIn" | |
} | |
data "octopusdeploy_machine_policies" "default" { | |
} | |
resource "octopusdeploy_deployment_process" "deployment" { | |
project_id = octopusdeploy_project.echo-api.id | |
step { | |
name = "Deploy Function" | |
target_roles = ["echo-api"] | |
action { | |
name = "Deploy Function" | |
action_type = "Octopus.AzureWebApp" | |
environments = [octopusdeploy_environment.test.id] | |
package { | |
name = "" | |
package_id = "func" | |
feed_id = data.octopusdeploy_feeds.builtin.feeds[0].id | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment