Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

C2DEVEL-12313: add verify False flag for as and eks #15

Merged
merged 1 commit into from
Sep 29, 2022

Conversation

ancient07
Copy link

No description provided.

Comment on lines 34 to 41
session = boto3.Session(
aws_access_key_id=aws_access_key_id,
aws_secret_access_key=aws_secret_access_key,
region_name="croc",
)

return session.client(
service,
endpoint_url=endpoint,
verify=False,
)
Copy link
Contributor

Choose a reason for hiding this comment

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

Если выносить получение клиента в отдельный метод, то нужно за одно избавиться от сессии, сразу создавать клиент.
https://stackoverflow.com/questions/42809096/difference-in-boto3-between-resource-client-and-session

@ancient07 ancient07 force-pushed the add-verify-false-to-as-eks branch from 2e0deaf to 94a1cc2 Compare August 17, 2022 12:05
@ancient07 ancient07 force-pushed the add-verify-false-to-as-eks branch from 94a1cc2 to dd7fb70 Compare August 17, 2022 12:13
refactor verify ssl certificates option, move usage to flag
@ancient07 ancient07 force-pushed the add-verify-false-to-as-eks branch from dd7fb70 to 9e82af3 Compare August 17, 2022 12:21
@plushambush plushambush merged commit fe6b68f into C2Devel:master Sep 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants