Terraform sumologic provider generates "Error 401 Full authentication is required" when trying to create Collector

Comments

3 comments

  • Avatar
    Kevin Keech2

    There are a few things that could lead to authentication issues that you will want to check. 

    1.) The user who generated the AccessKey/ID has the permissions to Manage Collectors

    2.) The proper deployment for your account is set in the "environment" variable. (us1, us2, au, eu, etc...) us2 is set as an example in the docs. After you login to your account, you can determine the deployment from the URL in your browser.

      Ex. https://service.<deployment>.sumologic.com

      Note: if you do not see a <deployment> in your URL your account will be in the "us1" deployment.

    3.) The accessKey/ID have been entered correctly. (verify you have set your TF environment variables for these) 

    0
    Comment actions Permalink
  • Avatar
    Michael Cook

    Thanks Kevin for the response.  It seems the 'us2' was my problem... it works if I set "us1".  I cannot see a us1 or us2 etc in my browser URL.  Other "show URL" for HTTP Sources that others have created also do not have this naming convention.

     

    0
    Comment actions Permalink
  • Avatar
    Kevin Keech2

    Good to see you got things working. So your account is in the Sumo Logic "US1" deployment, which does not have a specific deployment ID within the URLs. This is also why you and others don't see this within the HTTP Source URLs.  

    0
    Comment actions Permalink

Please sign in to leave a comment.