Title: The state of ec2 instance is not matched with actual. · Issue #10 · aws-samples/aws-python-sample · GitHub
Open Graph Title: The state of ec2 instance is not matched with actual. · Issue #10 · aws-samples/aws-python-sample
X Title: The state of ec2 instance is not matched with actual. · Issue #10 · aws-samples/aws-python-sample
Description: Hi, I found the state of ec2 is not matched with actual, when I entered below codes. import boto3 rsc = boto3.resource('ec2') a = list(rsc.instance.filter(Filters=[{'Name': 'tag:Name', 'Values': ['my_ec2_instance']}])) a[0].state {'Name'...
Open Graph Description: Hi, I found the state of ec2 is not matched with actual, when I entered below codes. import boto3 rsc = boto3.resource('ec2') a = list(rsc.instance.filter(Filters=[{'Name': 'tag:Name', 'Values': ['...
X Description: Hi, I found the state of ec2 is not matched with actual, when I entered below codes. import boto3 rsc = boto3.resource('ec2') a = list(rsc.instance.filter(Filters=[{'Name': 'tag...
Opengraph URL: https://github.com/aws-samples/aws-python-sample/issues/10
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"The state of ec2 instance is not matched with actual.","articleBody":"Hi,\r\n\r\nI found the state of ec2 is not matched with actual, when I entered below codes.\r\n\r\n \u003e\u003e\u003e import boto3\r\n \u003e\u003e\u003e rsc = boto3.resource('ec2')\r\n \u003e\u003e\u003e a = list(rsc.instance.filter(Filters=[{'Name': 'tag:Name', 'Values': ['my_ec2_instance']}]))\r\n \u003e\u003e\u003e a[0].state\r\n {'Name': 'stopped', 'Code': 80}\r\n \u003e\u003e\u003e a[0].start()\r\n \u003e\u003e\u003e a[0].wait_until_running()\r\n \u003e\u003e\u003e a[0].state\r\n {'Name': 'running', 'Code': 16}\r\n \u003e\u003e\u003e a[0].stop()\r\n \u003e\u003e\u003e a[0].state\r\n {'Name': 'stopping', 'Code': 64}\r\n \u003e\u003e\u003e a[0].wait_until_stopped()\r\n (When this blocking is released, I can check the state of EC2 is 'stopped' on AWS console page. BUT,)\r\n \u003e\u003e\u003e a[0].state\r\n {'Name': 'stopping', 'Code': 64}\r\n\r\nI expected 'stopped'.\r\n\r\nThis doesn't happens every time. Sometimes it works correctly.\r\n\r\n\r\nCould you explain me how can I fix this?\r\nOr if something I use those API with wrong way, let me know.\r\n\r\n\r\nMy python and boto3 version is\r\n - Python: 3.6.8\r\n - boto3: 1.12.39\r\n\r\n\r\n\r\nThank you!\r\n","author":{"url":"https://github.com/skostrichegg","@type":"Person","name":"skostrichegg"},"datePublished":"2020-07-29T02:04:38.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/10/aws-python-sample/issues/10"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:a50c66c5-93fb-739e-1900-6b52d58f6b8b |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C8C8:3ECBC5:E8C8D0:13A62BE:69812D42 |
| html-safe-nonce | f7a86d63034cce6515bf986d1f6f0b845c23691ac2816ee837ba8af2cf092195 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDOEM4OjNFQ0JDNTpFOEM4RDA6MTNBNjJCRTo2OTgxMkQ0MiIsInZpc2l0b3JfaWQiOiI1NDAwMDE5MzYwMzQzNDY5Mzc4IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 303d526b94e5d9ff9b9ed0346e1a45b14982a10909e41a86abe2f691c7972bde |
| hovercard-subject-tag | issue:667492167 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/aws-samples/aws-python-sample/10/issue_layout |
| twitter:image | https://opengraph.githubassets.com/bb6a5238a8bf816707f87dbfc8e98c3667572ca76e97380f25749ceb45b914dd/aws-samples/aws-python-sample/issues/10 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/bb6a5238a8bf816707f87dbfc8e98c3667572ca76e97380f25749ceb45b914dd/aws-samples/aws-python-sample/issues/10 |
| og:image:alt | Hi, I found the state of ec2 is not matched with actual, when I entered below codes. import boto3 rsc = boto3.resource('ec2') a = list(rsc.instance.filter(Filters=[{'Name': 'tag:Name', 'Values': ['... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | skostrichegg |
| hostname | github.com |
| expected-hostname | github.com |
| None | 39fe8101494cbb823c09b619b68c80cd4d05ab7279997038dbe06bb91608abe1 |
| turbo-cache-control | no-preview |
| go-import | github.com/aws-samples/aws-python-sample git https://github.com/aws-samples/aws-python-sample.git |
| octolytics-dimension-user_id | 8931462 |
| octolytics-dimension-user_login | aws-samples |
| octolytics-dimension-repository_id | 12929872 |
| octolytics-dimension-repository_nwo | aws-samples/aws-python-sample |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 12929872 |
| octolytics-dimension-repository_network_root_nwo | aws-samples/aws-python-sample |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | d5b34a4e4898b066c629879feb4b184bc471d6a7 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width