jason-johnson / azure-pipelines-tasks-terraform

Azure Pipelines extension for Terraform
MIT License
132 stars 58 forks source link

The security token included in the request is invalid #453

Open hemantpro opened 1 day ago

hemantpro commented 1 day ago

Describe the bug As soon i start using backend block, init failes with error api error InvalidClientTokenId: The security token included in the request is invalid.

To Reproduce Steps to reproduce the behavior:

main.tf terraform {

backend "s3" { } } provider "aws" { region = "eu-central-1" default_tags { tags = { Environment = var.env_name Owner = var.owner Project = var.project_name System_Owner= var.system_owner Product_Owner= var.product_owner } } }

Expected behavior backend initiates with no credentials error

Screenshots image

Pipeline Logs Include logs that help demonstrate the problem. Please make sure to redact any sensitive info such as secrets.

Agent Configuration

Additional context Add any other context about the problem here.

hemantpro commented 1 day ago

Hi @piizei @jason-johnson , really stuck due to this, any help to fix it is higly appreciated.