Skip to content
This repository was archived by the owner on Dec 9, 2024. It is now read-only.

Fixed the Python version issue and update the quickstart URLs #31

Merged
merged 11 commits into from
Sep 4, 2024

Conversation

rahul188
Copy link
Contributor

@rahul188 rahul188 commented Jul 3, 2024

I created a PR to fix the Python version issue and update the quickstart URLs. This resolves the following issues:

Issue #28
Issue #20
Issue #13

@sshvans
Copy link

sshvans commented Jul 8, 2024

@rahul188 Instead of updating automation script, pls add the ignore checks in the template.

@rahul188
Copy link
Contributor Author

rahul188 commented Jul 8, 2024

@sshvans i have made changes in templates.

@rahul188
Copy link
Contributor Author

@sshvans can you take a look on this? as its customer is waiting for this fix.

@sshvans
Copy link

sshvans commented Jul 15, 2024

/do-e2e-tests

Copy link

End to end test has been scheduled

Copy link

E2E tests in progress

1 similar comment
Copy link

E2E tests in progress

Copy link

@aws-ia-automator-prod aws-ia-automator-prod bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

E2E test has completed with errors. If you are an external contributor, please contact the project maintainers for more information.

@rahul188
Copy link
Contributor Author

@sshvans , can you please elaborate the failure?

@sshvans
Copy link

sshvans commented Jul 19, 2024

@rahul188 It uses following 3 parameters to deploy the stack. Currently, the test is failing bcz these values are missing in the config file that is stored internally and used while testing the templates. Can you provide these values over email that can be stored and used for testing?
NewRelicAccountNumber: ''
LaunchAccountList: ''
NewRelicAccessKey: ''

@rahul188
Copy link
Contributor Author

@sshvans, For testing purposes, to avoid security hiccups please create a new free New Relic account and provide the following values to update the config file:

  • NewRelicAccountNumber
  • NewRelicAccessKey

Additionally, could you also provide more information on what values should be populated for the LaunchAccountList variable?

@tbulding
Copy link
Contributor

/do-e2e-tests

Copy link

End to end test has been scheduled

Copy link

E2E tests in progress

Copy link

@aws-ia-automator-prod aws-ia-automator-prod bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

E2E test has completed with errors. If you are an external contributor, please contact the project maintainers for more information.

@rahul188
Copy link
Contributor Author

@tbulding , can you give us more insights.

@tbulding
Copy link
Contributor

tbulding commented Aug 9, 2024

Please add the additional parameters to your TaskCat test file...

      AdditionalParametersLicenseKey: ''
      NewRelicLicenseKey: ''

Template validation for these templates is failing with errors due to number of characters (32 instead of 40). Additionally the Regex Pattern is reporting false positives when I modified them in my test environment. I changed the pattern from

'^([A-Z0-9-]){32}$'
to 
'^[A-Za-z0-9]{40}$'

templates/control-tower-customization.template.yml
templates/newrelic-hub-cfct.yaml

After making these modifications in my test environment, The test started, however it failed when creating the custom resource. Here are the error details...

"
"StackName": "tCaT-cfn-ps-ct-newrelic-one-newrelic-onboarding",
"LogicalResourceId": "NewRelicFirstLaunch",
"PhysicalResourceId": "tCaT-cfn-ps-ct-newrelic-one-newrelic-onboarding-us-west-2-...",
"ResourceType": "AWS::CloudFormation::CustomResource",
"Timestamp": "2024-08-09T17:21:42.851000+00:00",
"ResourceStatus": "CREATE_FAILED",
"ResourceStatusReason": "Received response status [FAILED] from custom resource. Message returned: ERROR: (truncated) xist\nFor more information check ...
(Service: AmazonCloudFormation; Status Code: 400; Error Code: ValidationError; Request ID: ...; Proxy: null) (RequestId: ...)",
"ResourceProperties": "{\"ServiceToken\":\"arn:aws:lambda:us-west-2:...:function:tCaT-cfn-ps-ct-newrelic-o-NewRelicOnboardingFuncti-...\"}"

@rahul188
Copy link
Contributor Author

@tbulding the above failure with status code 400 due to StackSetUrl which present in .taskcat.yml file was not accessible. i have updated the same StackSetUrl which is present in control-tower-customization.template.yml file and now its woking as expected.

image

@tbulding
Copy link
Contributor

/do-e2e-tests

Copy link

End to end test has been scheduled

Copy link

E2E tests in progress

Copy link

@aws-ia-automator-prod aws-ia-automator-prod bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

E2E test has completed with errors. If you are an external contributor, please contact the project maintainers for more information.

@tbulding
Copy link
Contributor

Please update the constraint restrictions for the Access Key in these files.
^([A-Z0-9-]){32}$
^([A-Z0-9-]){32}$

@tbulding
Copy link
Contributor

tbulding commented Sep 4, 2024

/do-e2e-tests

Copy link

End to end test has been scheduled

Copy link

E2E tests in progress

Copy link

@aws-ia-automator-prod aws-ia-automator-prod bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

E2E test has completed with errors. If you are an external contributor, please contact the project maintainers for more information.

@tbulding
Copy link
Contributor

tbulding commented Sep 4, 2024

/do-e2e-tests

Copy link

End to end test has been scheduled

Copy link

E2E tests in progress

Copy link

@aws-ia-automator-prod aws-ia-automator-prod bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

E2E tests completed successfully

@tbulding tbulding self-requested a review September 4, 2024 15:24
@tbulding tbulding merged commit 253c9bf into aws-ia:main Sep 4, 2024
3 checks passed
@motske
Copy link

motske commented Sep 12, 2024

I know this was merged already, but I think there is an issue with commit d104340 . This changed the NewRelicAccessKey requirement from 32 to 40 character for NewRelicAccessKey, but I think 32 is the correct value. NewRelic 'Ingest - License' keys are 40 characters, but my 'NerdGraph User' keys all seem to be 32 characters. I created a new User key today and it was 32 characters including the NRAK prefix and the '-' character.

Should I create a new issue or would @rahul188 like to address this?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants